mirror of
https://github.com/RYDE-WORK/ktransformers.git
synced 2026-01-19 12:43:16 +08:00
Merge pull request #29 from kvcache-ai/fix]-fix-linux-mutex
Update task_queue.h
This commit is contained in:
commit
44f57270c9
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user