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.
This commit is contained in:
parent
40b39b06d4
commit
98c87d0e70
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue