this is horrible
This commit is contained in:
parent
e1cd05e8e9
commit
e8dbacf6e0
2 changed files with 30 additions and 11 deletions
|
|
@ -25,6 +25,7 @@
|
|||
#include <atomic>
|
||||
#include <functional>
|
||||
#include <condition_variable>
|
||||
#include <future>
|
||||
|
||||
#include "fixedQueue.h"
|
||||
|
||||
|
|
@ -75,7 +76,7 @@ class DivWorkPool {
|
|||
unsigned int pos;
|
||||
DivWorkThread* workThreads;
|
||||
public:
|
||||
std::condition_variable notify;
|
||||
std::promise<void> notify;
|
||||
std::atomic<int> busyCount;
|
||||
|
||||
/**
|
||||
|
|
@ -98,4 +99,4 @@ class DivWorkPool {
|
|||
~DivWorkPool();
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue