From 919605c8be5e2c3f5d455335d9837cd1e65917ff Mon Sep 17 00:00:00 2001 From: Raphael Junqueira Date: Wed, 17 Mar 2004 01:43:47 +0000 Subject: [PATCH] Added stub for SignalObjectAndWait. --- dlls/kernel/kernel32.spec | 2 +- dlls/kernel/sync.c | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/dlls/kernel/kernel32.spec b/dlls/kernel/kernel32.spec index a8541331d66..d77de29154c 100644 --- a/dlls/kernel/kernel32.spec +++ b/dlls/kernel/kernel32.spec @@ -1025,7 +1025,7 @@ @ stdcall SetThreadIdealProcessor(long long) @ stdcall SetThreadPriorityBoost(long long) @ stdcall SetWaitableTimer(long ptr long ptr ptr long) -@ stub SignalObjectAndWait +@ stdcall SignalObjectAndWait(long long long long) @ stdcall SwitchToFiber(ptr) @ stdcall SwitchToThread() @ stdcall TryEnterCriticalSection(ptr) ntdll.RtlTryEnterCriticalSection diff --git a/dlls/kernel/sync.c b/dlls/kernel/sync.c index b3f1049db2a..84b2a9202c9 100644 --- a/dlls/kernel/sync.c +++ b/dlls/kernel/sync.c @@ -261,6 +261,19 @@ BOOL WINAPI UnregisterWaitEx( HANDLE WaitHandle, HANDLE CompletionEvent ) return FALSE; } +/*********************************************************************** + * SignalObjectAndWait (KERNEL32.@) + * + * Allows to atomically signal any of the synchro objects (semaphore, + * mutex, event) and wait on another. + */ +DWORD WINAPI SignalObjectAndWait( HANDLE hObjectToSignal, HANDLE hObjectToWaitOn, DWORD dwMilliseconds, BOOL bAlertable ) +{ + FIXME("(%p %p %ld %d): stub\n", hObjectToSignal, hObjectToWaitOn, dwMilliseconds, bAlertable); + return WAIT_OBJECT_0; +} + + /*********************************************************************** * InitializeCriticalSection (KERNEL32.@) *