Module: wine Branch: master Commit: 98c87d0e70861a59b409ea123434882709d966a5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=98c87d0e70861a59b409ea1234...
Author: Rob Shearman rob@codeweavers.com Date: Thu Jan 4 18:23:53 2007 +0000
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 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/rpcrt4/rpc_server.c b/dlls/rpcrt4/rpc_server.c index 285ef09..84090aa 100644 --- a/dlls/rpcrt4/rpc_server.c +++ b/dlls/rpcrt4/rpc_server.c @@ -345,7 +345,7 @@ static DWORD CALLBACK RPCRT4_io_thread(L 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; }