Update task_queue.h

This commit is contained in:
Atream 2024-08-12 20:06:19 +08:00 committed by GitHub
parent cb7f8e7817
commit 3c675af61a
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