haiku/headers
Michael Lotz 25556bf64a kernel: Fix race condition when waiting for load of new team.
There was no synchronization of the check of the done flag and the
waiting thread suspending to wait for it. It was therefore possible that
the new team both set the flag and triggered the wakeup of the waiting
thread in that time window, causing it to miss both the set flag and the
thread resumption.

Use a condition variable instead.

Fixes #13081.

Change-Id: I93c45db8dd773fe42b45c4b67153bcd39e200d3b
Reviewed-on: https://review.haiku-os.org/803
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 919185caba)
Reviewed-on: https://review.haiku-os.org/804
2018-12-26 23:59:23 +00:00
..
build build: Use BeOSBuildCompatibility on Haiku also. 2018-07-31 19:50:46 -04:00
compatibility pty.h: fix typo. 2018-08-26 12:02:52 +02:00
config build: Add initial ARM64 target. 2018-08-02 19:48:29 -04:00
cpp build fix. 2015-11-12 22:24:16 +01:00
glibc Make public glibc header printf.h usable. 2013-07-17 18:07:56 +02:00
libs Complete implementation of printer serial transport 2018-06-05 21:44:14 +00:00
os BLooper: API to hijack existing thread. 2018-12-02 21:37:13 +00:00
posix Fix IN6_IS_ADDR_V4MAPPED & IN6_IS_ADDR_V4COMPAT false positives 2018-12-02 21:31:53 +00:00
private kernel: Fix race condition when waiting for load of new team. 2018-12-26 23:59:23 +00:00
tools Fix #12799: Enable elf symbol patching for Haiku 2016-10-30 10:42:24 +01:00