ntdll: Don't print a fixme in RtlQueueUserWorkItem if WT_EXECUTELONGFUNCTION is specified since that is what the current behaviour is tuned for.

Robert Shearman rob at codeweavers.com
Thu Jan 4 12:23:44 CST 2007


---
  dlls/ntdll/threadpool.c |    4 +++-
  1 files changed, 3 insertions(+), 1 deletions(-)
-------------- next part --------------
diff --git a/dlls/ntdll/threadpool.c b/dlls/ntdll/threadpool.c
index cfe4f65..3d06cb4 100644
--- a/dlls/ntdll/threadpool.c
+++ b/dlls/ntdll/threadpool.c
@@ -181,11 +181,13 @@ NTSTATUS WINAPI RtlQueueWorkItem(PRTL_WO
     work_item->function = Function;
     work_item->context = Context;
 
-    if (Flags != WT_EXECUTEDEFAULT)
+    if (Flags & ~WT_EXECUTELONGFUNCTION)
         FIXME("Flags 0x%x not supported\n", Flags);
 
     status = add_work_item_to_queue(work_item);
 
+    /* FIXME: tune this algorithm to not be as aggressive with creating threads
+     * if WT_EXECUTELONGFUNCTION isn't specified */
     if ((status == STATUS_SUCCESS) &&
         ((num_workers == 0) || (num_workers == num_busy_workers)))
     {


More information about the wine-patches mailing list