mirror of https://github.com/qortal/qortal
Browse Source
Defer the clearing of hasThreadPending flag until about to produce a task, inside synchronized block. This gives a new thread a chance to produce at least once before other threads decide to spawn new threads. Previously there could be an excessive number of unncessary threads, all waiting for their initial attempt to produce a task.pull/67/head
catbref
5 years ago
1 changed files with 9 additions and 1 deletions
Loading…
Reference in new issue