Robert Shearman : kernel: Implement QueueUserWorkItem.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 13 08:46:43 CST 2006


Module: wine
Branch: refs/heads/master
Commit: 44cb832ff3c3f789f0cda7476efda89897f1c201
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=44cb832ff3c3f789f0cda7476efda89897f1c201

Author: Robert Shearman <rob at codeweavers.com>
Date:   Mon Mar 13 11:29:04 2006 +0000

kernel: Implement QueueUserWorkItem.

---

 dlls/kernel/thread.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/dlls/kernel/thread.c b/dlls/kernel/thread.c
index a695612..41a8ccf 100644
--- a/dlls/kernel/thread.c
+++ b/dlls/kernel/thread.c
@@ -506,8 +506,14 @@ DWORD WINAPI QueueUserAPC( PAPCFUNC func
  */
 BOOL WINAPI QueueUserWorkItem( LPTHREAD_START_ROUTINE Function, PVOID Context, ULONG Flags )
 {
-    FIXME("(%p,%p,0x%08lx): stub\n", Function, Context, Flags);
-    return FALSE;
+    NTSTATUS status;
+
+    TRACE("(%p,%p,0x%08lx)\n", Function, Context, Flags);
+
+    status = RtlQueueWorkItem( Function, Context, Flags );
+
+    if (status) SetLastError( RtlNtStatusToDosError(status) );
+    return !status;
 }
 
 /**********************************************************************




More information about the wine-cvs mailing list