more multi-thread fixes
don't use static on acquire() don't yield at all run fillBuf() on thread fix option tooltip as it introduces some overhead
This commit is contained in:
parent
64669e4d9b
commit
1a520dbf3e
14 changed files with 33 additions and 29 deletions
|
|
@ -41,7 +41,7 @@ void DivWorkThread::run() {
|
|||
if (setFuckingPromise) {
|
||||
parent->notify.set_value();
|
||||
setFuckingPromise=false;
|
||||
std::this_thread::yield();
|
||||
//std::this_thread::yield();
|
||||
}
|
||||
if (terminate) {
|
||||
break;
|
||||
|
|
@ -153,7 +153,7 @@ void DivWorkPool::wait() {
|
|||
}
|
||||
}
|
||||
}
|
||||
std::this_thread::yield();
|
||||
//std::this_thread::yield();
|
||||
|
||||
// wait
|
||||
future.wait();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue