mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-17 10:06:21 +00:00
Switch back to std::list as a kneejerk fix for AsyncTaskQueue
.
This commit is contained in:
parent
4c031bd335
commit
18f01bcd48
@ -12,6 +12,7 @@
|
|||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <condition_variable>
|
#include <condition_variable>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
#include <list>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -56,7 +57,7 @@ class AsyncTaskQueue {
|
|||||||
std::atomic_bool should_destruct_;
|
std::atomic_bool should_destruct_;
|
||||||
std::condition_variable processing_condition_;
|
std::condition_variable processing_condition_;
|
||||||
std::mutex queue_mutex_;
|
std::mutex queue_mutex_;
|
||||||
TaskList pending_tasks_;
|
std::list<std::function<void(void)>> pending_tasks_;
|
||||||
|
|
||||||
std::thread thread_;
|
std::thread thread_;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user