aboutsummaryrefslogtreecommitdiff
path: root/src/platform
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-26 23:41:54 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-26 23:42:28 -0800
commit0867d597788099c213b1f3b0bbd2f3adbaeceee2 (patch)
treeb86b0a14b34687cda30e5e93c941846aa6cd57f3 /src/platform
parent93d72cab018ddbdb35a03e450b5725a2a7e58eb6 (diff)
downloadnng-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/platform')
0 files changed, 0 insertions, 0 deletions