msvcp140: Add __crtCreateThreadpoolWait implementation.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2017-03-10 17:33:45 +01:00 committed by Alexandre Julliard
parent 941ce07a4c
commit d0c398a56c
2 changed files with 11 additions and 1 deletions

View File

@ -3761,7 +3761,7 @@
@ cdecl __crtCreateSemaphoreExW(ptr long long wstr long long) MSVCP__crtCreateSemaphoreExW
@ stub __crtCreateSymbolicLinkW
@ cdecl __crtCreateThreadpoolTimer(ptr ptr ptr) MSVCP__crtCreateThreadpoolTimer
@ stub __crtCreateThreadpoolWait
@ cdecl __crtCreateThreadpoolWait(ptr ptr ptr) MSVCP__crtCreateThreadpoolWait
@ stub __crtFlushProcessWriteBuffers
@ stub __crtFreeLibraryWhenCallbackReturns
@ stub __crtGetCurrentProcessorNumber

View File

@ -1286,6 +1286,16 @@ VOID CDECL MSVCP__crtSetThreadpoolTimer(TP_TIMER *timer,
return SetThreadpoolTimer(timer, due_time, period, window_length);
}
/*********************************************************************
* __crtCreateThreadpoolWait (MSVCP140.@)
*/
PTP_WAIT CDECL MSVCP__crtCreateThreadpoolWait(PTP_WAIT_CALLBACK callback,
PVOID userdata, TP_CALLBACK_ENVIRON *environment)
{
TRACE("(%p %p %p)\n", callback, userdata, environment);
return CreateThreadpoolWait(callback, userdata, environment);
}
/* ?_Execute_once@std@@YAHAAUonce_flag@1@P6GHPAX1PAPAX@Z1@Z */
/* ?_Execute_once@std@@YAHAEAUonce_flag@1@P6AHPEAX1PEAPEAX@Z1@Z */
BOOL __cdecl _Execute_once(INIT_ONCE *flag, PINIT_ONCE_FN func, void *param)