From 32a369d6c2e7b526c2b3e4bf39304912cfa9a10d Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Wed, 27 Apr 2022 20:22:15 +0200 Subject: [PATCH] msvcp140_atomic_wait: Add __std_atomic_notify_one_direct implementation. Signed-off-by: Piotr Caban Signed-off-by: Alexandre Julliard --- dlls/msvcp140_atomic_wait/Makefile.in | 2 +- dlls/msvcp140_atomic_wait/main.c | 6 ++++++ dlls/msvcp140_atomic_wait/msvcp140_atomic_wait.spec | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dlls/msvcp140_atomic_wait/Makefile.in b/dlls/msvcp140_atomic_wait/Makefile.in index 42f8d7157b1..1be68bc5ce5 100644 --- a/dlls/msvcp140_atomic_wait/Makefile.in +++ b/dlls/msvcp140_atomic_wait/Makefile.in @@ -1,5 +1,5 @@ MODULE = msvcp140_atomic_wait.dll -IMPORTS = msvcp140 +IMPORTS = kernelbase msvcp140 C_SRCS = \ main.c diff --git a/dlls/msvcp140_atomic_wait/main.c b/dlls/msvcp140_atomic_wait/main.c index f489a7d8e05..f27c1058d14 100644 --- a/dlls/msvcp140_atomic_wait/main.c +++ b/dlls/msvcp140_atomic_wait/main.c @@ -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); +} diff --git a/dlls/msvcp140_atomic_wait/msvcp140_atomic_wait.spec b/dlls/msvcp140_atomic_wait/msvcp140_atomic_wait.spec index bb4edfb76e5..f28cfe9513c 100644 --- a/dlls/msvcp140_atomic_wait/msvcp140_atomic_wait.spec +++ b/dlls/msvcp140_atomic_wait/msvcp140_atomic_wait.spec @@ -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