diff options
author | Guilherme Íscaro <cabelitostos@gmail.com> | 2021-07-09 17:07:18 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-09 16:07:18 -0400 |
commit | e49ef4f309e631e2ecbeb7ff4397b0b073da681c (patch) | |
tree | 35eb27aa81c11dce04f6b4af3b1d58a26b3c4c48 /docs/src | |
parent | b12699b1efabfd241324f4ab6cfd6ce576db491e (diff) | |
download | libuv-e49ef4f309e631e2ecbeb7ff4397b0b073da681c.tar.gz libuv-e49ef4f309e631e2ecbeb7ff4397b0b073da681c.zip |
darwin: fix uv_barrier race condition
Prior to this patch a race condition may occur in case a thread tries
to destroy the barrier while other awaiting threads were not notified.
Since the internal mutex and condition variables are destroyed this may
cause an undefined behavior as described by the man pages.
So in order to prevent such scenarios the detroy function will not wait
until all awaiting threads are finished before proceeding.
Fixes: https://github.com/libuv/libuv/issues/3102
PR-URL: https://github.com/libuv/libuv/pull/3162
Reviewed-By: Jameson Nash <vtjnash@gmail.com>
Diffstat (limited to 'docs/src')
0 files changed, 0 insertions, 0 deletions