msvcp140_atomic_wait: Add __std_atomic_notify_one_direct implementation.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2022-04-27 20:22:15 +02:00 committed by Alexandre Julliard
parent 2b4b10be9a
commit 32a369d6c2
3 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,5 @@
MODULE = msvcp140_atomic_wait.dll
IMPORTS = msvcp140
IMPORTS = kernelbase msvcp140
C_SRCS = \
main.c

View File

@ -62,3 +62,9 @@ void __stdcall __std_wait_for_threadpool_work_callbacks(PTP_WORK work, BOOL canc
TRACE("(%p %d)\n", work, cancel);
return WaitForThreadpoolWorkCallbacks(work, cancel);
}
void __stdcall __std_atomic_notify_one_direct(void *addr)
{
TRACE("(%p)\n", addr);
WakeByAddressSingle(addr);
}

View File

@ -4,7 +4,7 @@
@ stub __std_atomic_has_cmpxchg16b
@ stub __std_atomic_notify_all_direct
@ stub __std_atomic_notify_all_indirect
@ stub __std_atomic_notify_one_direct
@ stdcall __std_atomic_notify_one_direct(ptr)
@ stub __std_atomic_notify_one_indirect
@ stub __std_atomic_set_api_level
@ stub __std_atomic_wait_direct