Skip to content

Commit

Permalink
Merge pull request #29 from kvcache-ai/fix]-fix-linux-mutex
Browse files Browse the repository at this point in the history
Update task_queue.h
  • Loading branch information
UnicornChan authored Aug 12, 2024
2 parents cb7f8e7 + 3c675af commit 44f5727
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ktransformers/ktransformers_ext/cpu_backend/task_queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class custom_mutex {
#ifdef _WIN32
ReleaseMutex(global_mutex);
#else
global_mutex.lock();
global_mutex.unlock();
#endif
}
};
Expand All @@ -74,4 +74,4 @@ class TaskQueue {
std::atomic<bool> sync_flag;
std::atomic<bool> exit_flag;
};
#endif
#endif

0 comments on commit 44f5727

Please sign in to comment.