3 of 4 commit (sorry my svn clinet is crazy for moment)

Commit w3seek patch from bug 1609 : file attachment (id=910) 
The attached patch implements QueueUserWorkItem()/RtlQueueWorkItem() (lacks
optimizations!!!). WINE's latest rpcrt4 relies on it.

1. Implement QueueUserWorkItem()/RtlQueueWorkItem() :
2. A slightly optimized 
3. Supports WT_TRANSFER_IMPERSONATION
4. Slightly improved handling of growing/shrinking the pool by assuming work items with WT_EXECUTELONGFUNCTION run longer
5. Fixes a hack that made a worker thread always terminate if there were at least one more thread available




svn path=/trunk/; revision=22806
This commit is contained in:
Magnus Olsen 2006-07-03 20:24:46 +00:00
parent f9fa435673
commit 34861fa5e2
3 changed files with 16 additions and 0 deletions

View file

@ -94,5 +94,6 @@
<file>unicodeprefix.c</file>
<file>vectoreh.c</file>
<file>version.c</file>
<file>workitem.c</file>
<pch>rtl.h</pch>
</module>

View file

@ -114,4 +114,11 @@ DebugService(IN ULONG Service,
#define TAG_ASTR TAG('A', 'S', 'T', 'R')
#define TAG_OSTR TAG('O', 'S', 'T', 'R')
/* Timer Queue */
extern HANDLE TimerThreadHandle;
NTSTATUS
RtlpInitializeTimerThread(VOID);
/* EOF */

View file

@ -17,6 +17,14 @@
typedef VOID (CALLBACK *WAITORTIMERCALLBACKFUNC) (PVOID, BOOLEAN );
HANDLE TimerThreadHandle = NULL;
NTSTATUS
RtlpInitializeTimerThread(VOID)
{
return STATUS_NOT_IMPLEMENTED;
}
/*
* @unimplemented
*/