ntdll: Avoid more race conditions in RtlDeregisterWaitEx.
commit759e6f1d8d5c531291440299bad0c1ab5ae53d05
authorStefan Dösinger <stefan@codeweavers.com>
Sun, 28 Oct 2018 21:14:14 +0000 (28 22:14 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 31 Oct 2018 18:13:15 +0000 (31 19:13 +0100)
tree2e5363f2dcf914affb4c8bb0447e8d7794f21632
parent3a2834b3a42e869b7d450074c29cd7089bfef015
ntdll: Avoid more race conditions in RtlDeregisterWaitEx.

af35aada9b078f8dc71dcc85e505da8eee4571da left some issues unfixed.
Instead of running the callback and returning a retval that indicates
the callback is not running, we sometimes wait for it when we are not
supposed to.

Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/ntdll/threadpool.c