ntdll: Start of pooling support for RtlQueueWorkItem

Robert Shearman rob at codeweavers.com
Tue Mar 21 07:44:14 CST 2006


This patch reduces the time taken to run the kernel QueueUserWorkItem 
test from 260ms to 6ms on my machine.

ChangeLog:
Start of pooling support for RtlQueueWorkItem. The algorithm
implmented is very simple - if there are no free threads, create a new
one.

  dlls/ntdll/threadpool.c |  137 
+++++++++++++++++++++++++++++++++++++++++++----
  1 files changed, 124 insertions(+), 13 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 8ee9ac02685c0d3712b7e10cddea053c5c03f91e.diff
Type: text/x-patch
Size: 5756 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060321/50701c46/8ee9ac02685c0d3712b7e10cddea053c5c03f91e.diff


More information about the wine-patches mailing list