libuv/include/uv
Jameson Nash 964f79f7c8
barrier: wait for prior out before next in (#3905)
This code would previously get confused between rounds of the barrier
being called and a thread might incorrectly get stuck (deadlock) if the
next round started before that thread had exited the current round.

Avoid that by not starting the next round in++ before out-- has reached
zero indicating that all threads have left the prior round.

And fix it that on Windows by replacing the implementation with the one
from unix. There are some awkward platform-specific redirection here
with an extra malloc that is not needed on Win32, but that will be fixed
in libuv v2.

Fixes: https://github.com/libuv/libuv/issue/3872
2023-03-06 17:57:25 -05:00
..
aix.h core: move all include files except uv.h to uv/ 2018-06-14 18:39:32 +02:00
bsd.h core: move all include files except uv.h to uv/ 2018-06-14 18:39:32 +02:00
darwin.h core: move all include files except uv.h to uv/ 2018-06-14 18:39:32 +02:00
errno.h unix: drop kfreebsd support (#3835) 2022-11-28 22:45:28 +01:00
linux.h core: move all include files except uv.h to uv/ 2018-06-14 18:39:32 +02:00
os390.h core: move all include files except uv.h to uv/ 2018-06-14 18:39:32 +02:00
posix.h core: move all include files except uv.h to uv/ 2018-06-14 18:39:32 +02:00
sunos.h core: move all include files except uv.h to uv/ 2018-06-14 18:39:32 +02:00
threadpool.h core: move all include files except uv.h to uv/ 2018-06-14 18:39:32 +02:00
tree.h chore: use for(;;) instead of while 2021-04-04 17:15:35 +02:00
unix.h unix: drop kfreebsd support (#3835) 2022-11-28 22:45:28 +01:00
version.h Now working on version 1.44.3 2022-07-12 12:22:04 -04:00
win.h barrier: wait for prior out before next in (#3905) 2023-03-06 17:57:25 -05:00