Commit db9fc914 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

ntdll: Implement TpSimpleTryPost and basic threadpool infrastructure.

parent b6cf2653
...@@ -970,6 +970,9 @@ ...@@ -970,6 +970,9 @@
@ stdcall RtlxOemStringToUnicodeSize(ptr) RtlOemStringToUnicodeSize @ stdcall RtlxOemStringToUnicodeSize(ptr) RtlOemStringToUnicodeSize
@ stdcall RtlxUnicodeStringToAnsiSize(ptr) RtlUnicodeStringToAnsiSize @ stdcall RtlxUnicodeStringToAnsiSize(ptr) RtlUnicodeStringToAnsiSize
@ stdcall RtlxUnicodeStringToOemSize(ptr) RtlUnicodeStringToOemSize @ stdcall RtlxUnicodeStringToOemSize(ptr) RtlUnicodeStringToOemSize
@ stdcall TpAllocPool(ptr ptr)
@ stdcall TpReleasePool(ptr)
@ stdcall TpSimpleTryPost(ptr ptr ptr)
@ stdcall -ret64 VerSetConditionMask(int64 long long) @ stdcall -ret64 VerSetConditionMask(int64 long long)
@ stdcall WinSqmIsOptedIn() @ stdcall WinSqmIsOptedIn()
@ stdcall ZwAcceptConnectPort(ptr long ptr long long ptr) NtAcceptConnectPort @ stdcall ZwAcceptConnectPort(ptr long ptr long long ptr) NtAcceptConnectPort
......
...@@ -48,7 +48,7 @@ static BOOL init_threadpool(void) ...@@ -48,7 +48,7 @@ static BOOL init_threadpool(void)
if (!pTpAllocPool) if (!pTpAllocPool)
{ {
skip("Threadpool functions not supported, skipping tests\n"); win_skip("Threadpool functions not supported, skipping tests\n");
return FALSE; return FALSE;
} }
...@@ -105,6 +105,7 @@ static void test_tp_simple(void) ...@@ -105,6 +105,7 @@ static void test_tp_simple(void)
environment.Version = 9999; environment.Version = 9999;
environment.Pool = pool; environment.Pool = pool;
status = pTpSimpleTryPost(simple_cb, semaphore, &environment); status = pTpSimpleTryPost(simple_cb, semaphore, &environment);
todo_wine
ok(status == STATUS_INVALID_PARAMETER || broken(!status) /* Vista/2008 */, ok(status == STATUS_INVALID_PARAMETER || broken(!status) /* Vista/2008 */,
"TpSimpleTryPost unexpectedly returned status %x\n", status); "TpSimpleTryPost unexpectedly returned status %x\n", status);
if (!status) if (!status)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment