mirror of
https://github.com/RYDE-WORK/ktransformers.git
synced 2026-02-04 21:43:13 +08:00
Update task_queue.h
This commit is contained in:
parent
cb7f8e7817
commit
3c675af61a
@ -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 {
|
|||||||
std::atomic<bool> sync_flag;
|
std::atomic<bool> sync_flag;
|
||||||
std::atomic<bool> exit_flag;
|
std::atomic<bool> exit_flag;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user