diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-12-22 11:27:52 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-12-23 09:00:43 +0000 |
commit | c70e8daa91fdcb17791f1c2b6e4119b1ab8074ab (patch) | |
tree | 4f0d4ac57a36bc398bdad6f54cbcfb3219941dbc /CONTRIBUTING.md | |
parent | Merge pull request #2961 (diff) | |
download | monero-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 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions