diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-26 23:41:54 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-26 23:42:28 -0800 |
| commit | 0867d597788099c213b1f3b0bbd2f3adbaeceee2 (patch) | |
| tree | b86b0a14b34687cda30e5e93c941846aa6cd57f3 /src/core/taskq.h | |
| parent | 93d72cab018ddbdb35a03e450b5725a2a7e58eb6 (diff) | |
| download | nng-0867d597788099c213b1f3b0bbd2f3adbaeceee2.tar.gz nng-0867d597788099c213b1f3b0bbd2f3adbaeceee2.tar.bz2 nng-0867d597788099c213b1f3b0bbd2f3adbaeceee2.zip | |
Fix bug that prevents threads from starting if waited on too soon.
This is partly caused by a race, but also an incorrect boolean short-circuit
that I had not reasoned about properly. Mostly changing the boolean
order fixes the condition, so that we prefer to start than to stop, if both
are set.
Diffstat (limited to 'src/core/taskq.h')
0 files changed, 0 insertions, 0 deletions
