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

Update task_queue.h
This commit is contained in:
UnicornChan 2024-08-12 20:14:04 +08:00 committed by GitHub
commit 44f57270c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,7 +51,7 @@ public:
#ifdef _WIN32
ReleaseMutex(global_mutex);
#else
global_mutex.lock();
global_mutex.unlock();
#endif
}
};
@ -74,4 +74,4 @@ class TaskQueue {
std::atomic<bool> sync_flag;
std::atomic<bool> exit_flag;
};
#endif
#endif