Unverified Commit 44f57270 authored by UnicornChan's avatar UnicornChan Committed by GitHub
Browse files

Merge pull request #29 from kvcache-ai/fix]-fix-linux-mutex

Update task_queue.h
parents cb7f8e78 3c675af6
...@@ -51,7 +51,7 @@ public: ...@@ -51,7 +51,7 @@ public:
#ifdef _WIN32 #ifdef _WIN32
ReleaseMutex(global_mutex); ReleaseMutex(global_mutex);
#else #else
global_mutex.lock(); global_mutex.unlock();
#endif #endif
} }
}; };
...@@ -74,4 +74,4 @@ class TaskQueue { ...@@ -74,4 +74,4 @@ class TaskQueue {
std::atomic<bool> sync_flag; std::atomic<bool> sync_flag;
std::atomic<bool> exit_flag; std::atomic<bool> exit_flag;
}; };
#endif #endif
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment