From 98c87d0e70861a59b409ea123434882709d966a5 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Thu, 4 Jan 2007 18:23:53 +0000 Subject: [PATCH] rpcrt4: Pass WT_EXECUTELONGFUNCTION to QueueUserWorkItem since the function being called can sometimes take a long time to return and we almost always want a new thread to be created if there are no free threads available. --- dlls/rpcrt4/rpc_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/rpcrt4/rpc_server.c b/dlls/rpcrt4/rpc_server.c index 285ef094a64..84090aaa6bc 100644 --- a/dlls/rpcrt4/rpc_server.c +++ b/dlls/rpcrt4/rpc_server.c @@ -345,7 +345,7 @@ static DWORD CALLBACK RPCRT4_io_thread(LPVOID the_arg) packet->conn = conn; packet->hdr = hdr; packet->msg = msg; - QueueUserWorkItem(RPCRT4_worker_thread, packet, WT_EXECUTEDEFAULT); + QueueUserWorkItem(RPCRT4_worker_thread, packet, WT_EXECUTELONGFUNCTION); #endif msg = NULL; } -- 2.11.4.GIT