Files
reactos/reactos/lib/rtl/timerqueue.c
Magnus Olsen 34861fa5e2 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
2006-07-03 20:24:46 +00:00

112 lines
1.9 KiB
C

/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* PURPOSE: Timer Queue implementation
* FILE: lib/rtl/timerqueue.c
* PROGRAMMER:
*/
/* INCLUDES *****************************************************************/
#include <rtl.h>
#define NDEBUG
#include <debug.h>
/* FUNCTIONS ***************************************************************/
typedef VOID (CALLBACK *WAITORTIMERCALLBACKFUNC) (PVOID, BOOLEAN );
HANDLE TimerThreadHandle = NULL;
NTSTATUS
RtlpInitializeTimerThread(VOID)
{
return STATUS_NOT_IMPLEMENTED;
}
/*
* @unimplemented
*/
NTSTATUS
NTAPI
RtlCreateTimer(HANDLE TimerQueue,
PHANDLE phNewTimer,
WAITORTIMERCALLBACKFUNC Callback,
PVOID Parameter,
DWORD DueTime,
DWORD Period,
ULONG Flags)
{
DPRINT1("RtlCreateTimer: stub\n");
return STATUS_NOT_IMPLEMENTED;
}
/*
* @unimplemented
*/
NTSTATUS
NTAPI
RtlCreateTimerQueue(PHANDLE TimerQueue)
{
DPRINT1("RtlCreateTimerQueue: stub\n");
return STATUS_NOT_IMPLEMENTED;
}
/*
* @unimplemented
*/
NTSTATUS
NTAPI
RtlDeleteTimer(HANDLE TimerQueue,
HANDLE Timer,
HANDLE CompletionEvent)
{
DPRINT1("RtlDeleteTimer: stub\n");
return STATUS_NOT_IMPLEMENTED;
}
/*
* @unimplemented
*/
NTSTATUS
NTAPI
RtlDeleteTimerQueue(HANDLE TimerQueue)
{
DPRINT1("RtlDeleteTimerQueue: stub\n");
return STATUS_NOT_IMPLEMENTED;
}
/*
* @unimplemented
*/
NTSTATUS
NTAPI
RtlDeleteTimerQueueEx(HANDLE TimerQueue,
HANDLE CompletionEvent)
{
DPRINT1("RtlDeleteTimerQueueEx: stub\n");
return STATUS_NOT_IMPLEMENTED;
}
/*
* @unimplemented
*/
NTSTATUS
NTAPI
RtlUpdateTimer(HANDLE TimerQueue,
HANDLE Timer,
ULONG DueTime,
ULONG Period)
{
DPRINT1("RtlUpdateTimer: stub\n");
return STATUS_NOT_IMPLEMENTED;
}
/* EOF */