aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-12-22 11:27:52 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-12-23 09:00:43 +0000
commitc70e8daa91fdcb17791f1c2b6e4119b1ab8074ab (patch)
tree4f0d4ac57a36bc398bdad6f54cbcfb3219941dbc /CMakeLists.txt
parentMerge pull request #2961 (diff)
downloadmonero-c70e8daa91fdcb17791f1c2b6e4119b1ab8074ab.tar.xz
threadpool: fix deadlock in recursive waiter usage
If a queued job uses a waiter, then we want to run that waiter's jobs in the current thread if all threads are busy, even if the queue is empty, since there is no guarantee that any thread will free up to take care of that new job, since all the threads might be running a job which spawns such a recursive job and will block till that recursive job is done, which it will never be since it relies on the queue being polled by one of those blocked threads.
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions