Author: greatlrd
Date: Tue Jul 4 00:24:46 2006
New Revision: 22806
URL:
http://svn.reactos.org/svn/reactos?rev=22806&view=rev
Log:
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
Modified:
trunk/reactos/lib/rtl/rtl.rbuild
trunk/reactos/lib/rtl/rtlp.h
trunk/reactos/lib/rtl/timerqueue.c
Modified: trunk/reactos/lib/rtl/rtl.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/rtl.rbuild?rev=228…
==============================================================================
--- trunk/reactos/lib/rtl/rtl.rbuild (original)
+++ trunk/reactos/lib/rtl/rtl.rbuild Tue Jul 4 00:24:46 2006
@@ -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>
Modified: trunk/reactos/lib/rtl/rtlp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/rtlp.h?rev=22806&a…
==============================================================================
--- trunk/reactos/lib/rtl/rtlp.h (original)
+++ trunk/reactos/lib/rtl/rtlp.h Tue Jul 4 00:24:46 2006
@@ -114,4 +114,11 @@
#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 */
Modified: trunk/reactos/lib/rtl/timerqueue.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/timerqueue.c?rev=2…
==============================================================================
--- trunk/reactos/lib/rtl/timerqueue.c (original)
+++ trunk/reactos/lib/rtl/timerqueue.c Tue Jul 4 00:24:46 2006
@@ -16,6 +16,14 @@
/* FUNCTIONS ***************************************************************/
typedef VOID (CALLBACK *WAITORTIMERCALLBACKFUNC) (PVOID, BOOLEAN );
+
+HANDLE TimerThreadHandle = NULL;
+
+NTSTATUS
+RtlpInitializeTimerThread(VOID)
+{
+ return STATUS_NOT_IMPLEMENTED;
+}
/*
* @unimplemented