From 7e1fead3fbd05b4ff6b61fd119e3dfde9b3d8ea8 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Thu, 4 Jan 2007 18:23:44 +0000 Subject: [PATCH] ntdll: Don't print a fixme in RtlQueueUserWorkItem if WT_EXECUTELONGFUNCTION is specified since that is what the current behaviour is tuned for. --- dlls/ntdll/threadpool.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/ntdll/threadpool.c b/dlls/ntdll/threadpool.c index cfe4f652e2d..3d06cb430bb 100644 --- a/dlls/ntdll/threadpool.c +++ b/dlls/ntdll/threadpool.c @@ -181,11 +181,13 @@ NTSTATUS WINAPI RtlQueueWorkItem(PRTL_WORK_ITEM_ROUTINE Function, PVOID Context, 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))) {