ReactOS 0.4.16-dev-340-g0540c21
|
Go to the source code of this file.
Classes | |
struct | _RTLP_IOWORKERTHREAD |
struct | _RTLP_WORKITEM |
Macros | |
#define | NDEBUG |
#define | MAX_WORKERTHREADS 0x100 |
#define | WORKERTHREAD_CREATION_THRESHOLD 0x5 |
#define | IsThreadPoolInitialized() (*((volatile LONG*)&ThreadPoolInitialized) == 1) |
Typedefs | |
typedef struct _RTLP_IOWORKERTHREAD | RTLP_IOWORKERTHREAD |
typedef struct _RTLP_IOWORKERTHREAD * | PRTLP_IOWORKERTHREAD |
typedef struct _RTLP_WORKITEM | RTLP_WORKITEM |
typedef struct _RTLP_WORKITEM * | PRTLP_WORKITEM |
Variables | |
PRTL_START_POOL_THREAD | RtlpStartThreadFunc = RtlpStartThread |
PRTL_EXIT_POOL_THREAD | RtlpExitThreadFunc = RtlpExitThread |
static LONG | ThreadPoolInitialized = 0 |
static RTL_CRITICAL_SECTION | ThreadPoolLock |
static PRTLP_IOWORKERTHREAD | PersistentIoThread |
static LIST_ENTRY | ThreadPoolIOWorkerThreadsList |
static HANDLE | ThreadPoolCompletionPort |
static LONG | ThreadPoolWorkerThreads |
static LONG | ThreadPoolWorkerThreadsRequests |
static LONG | ThreadPoolWorkerThreadsLongRequests |
static LONG | ThreadPoolIOWorkerThreads |
static LONG | ThreadPoolIOWorkerThreadsRequests |
static LONG | ThreadPoolIOWorkerThreadsLongRequests |
#define IsThreadPoolInitialized | ( | ) | (*((volatile LONG*)&ThreadPoolInitialized) == 1) |
Definition at line 78 of file workitem.c.
#define MAX_WORKERTHREADS 0x100 |
Definition at line 48 of file workitem.c.
#define NDEBUG |
Definition at line 13 of file workitem.c.
#define WORKERTHREAD_CREATION_THRESHOLD 0x5 |
Definition at line 49 of file workitem.c.
typedef struct _RTLP_IOWORKERTHREAD * PRTLP_IOWORKERTHREAD |
typedef struct _RTLP_WORKITEM * PRTLP_WORKITEM |
typedef struct _RTLP_WORKITEM RTLP_WORKITEM |
|
static |
Definition at line 308 of file workitem.c.
Referenced by RtlpQueueIoWorkerThread().
|
static |
Definition at line 194 of file workitem.c.
Referenced by RtlpQueueWorkerThread().
Definition at line 39 of file workitem.c.
Definition at line 146 of file workitem.c.
Referenced by RtlQueueWorkItem().
Definition at line 81 of file workitem.c.
Referenced by RtlQueueWorkItem(), and RtlSetIoCompletionCallback().
Definition at line 561 of file workitem.c.
Referenced by RtlQueueWorkItem().
Definition at line 517 of file workitem.c.
Referenced by RtlpIoWorkerThreadProc(), and RtlpWorkerThreadProc().
|
static |
Definition at line 385 of file workitem.c.
Referenced by RtlQueueWorkItem().
|
static |
Definition at line 258 of file workitem.c.
Referenced by RtlQueueWorkItem().
NTSTATUS NTAPI RtlpStartThread | ( | IN PTHREAD_START_ROUTINE | Function, |
IN PVOID | Parameter, | ||
OUT PHANDLE | ThreadHandle | ||
) |
Definition at line 20 of file workitem.c.
|
static |
Definition at line 164 of file workitem.c.
Referenced by RtlQueueWorkItem().
Definition at line 678 of file workitem.c.
Referenced by RtlQueueWorkItem().
NTSTATUS NTAPI RtlQueueWorkItem | ( | IN WORKERCALLBACKFUNC | Function, |
IN PVOID Context | OPTIONAL, | ||
IN ULONG | Flags | ||
) |
Definition at line 779 of file workitem.c.
NTSTATUS NTAPI RtlSetIoCompletionCallback | ( | IN HANDLE | FileHandle, |
IN PIO_APC_ROUTINE | Callback, | ||
IN ULONG | Flags | ||
) |
Definition at line 911 of file workitem.c.
NTSTATUS NTAPI RtlSetThreadPoolStartFunc | ( | IN PRTL_START_POOL_THREAD | StartPoolThread, |
IN PRTL_EXIT_POOL_THREAD | ExitPoolThread | ||
) |
Definition at line 946 of file workitem.c.
|
static |
Definition at line 68 of file workitem.c.
Referenced by RtlpInitializeThreadPool(), RtlpQueueIoWorkerThread(), and RtlQueueWorkItem().
PRTL_EXIT_POOL_THREAD RtlpExitThreadFunc = RtlpExitThread |
Definition at line 46 of file workitem.c.
Referenced by RtlpIoWorkerThreadProc(), RtlpWorkerThreadProc(), RtlSetThreadPoolStartFunc(), and timer_queue_thread_proc().
PRTL_START_POOL_THREAD RtlpStartThreadFunc = RtlpStartThread |
Definition at line 45 of file workitem.c.
Referenced by RtlCreateTimerQueue(), RtlpStartWorkerThread(), and RtlSetThreadPoolStartFunc().
|
static |
Definition at line 70 of file workitem.c.
Referenced by RtlpInitializeThreadPool(), RtlpQueueWorkerThread(), RtlpWorkerThreadProc(), and RtlSetIoCompletionCallback().
|
static |
Definition at line 66 of file workitem.c.
Referenced by RtlpInitializeThreadPool().
|
static |
Definition at line 74 of file workitem.c.
Referenced by RtlpInitializeThreadPool(), RtlpIoWorkerThreadProc(), RtlpQueueIoWorkerThread(), and RtlQueueWorkItem().
|
static |
Definition at line 69 of file workitem.c.
Referenced by RtlpInitializeThreadPool(), RtlpIoWorkerThreadProc(), and RtlpQueueIoWorkerThread().
|
static |
Definition at line 76 of file workitem.c.
Referenced by RtlpExecuteIoWorkItem(), RtlpInitializeThreadPool(), RtlpIoWorkerThreadProc(), RtlpQueueIoWorkerThread(), and RtlQueueWorkItem().
|
static |
Definition at line 75 of file workitem.c.
Referenced by RtlpExecuteIoWorkItem(), RtlpInitializeThreadPool(), RtlpIoWorkerThreadProc(), RtlpQueueIoWorkerThread(), and RtlQueueWorkItem().
|
static |
Definition at line 67 of file workitem.c.
Referenced by RtlpExecuteIoWorkItem(), RtlpInitializeThreadPool(), RtlpIoWorkerThreadProc(), RtlpWorkerThreadProc(), and RtlQueueWorkItem().
|
static |
Definition at line 71 of file workitem.c.
Referenced by RtlpInitializeThreadPool(), RtlpWorkerThreadProc(), and RtlQueueWorkItem().
|
static |
Definition at line 73 of file workitem.c.
Referenced by RtlpExecuteWorkItem(), RtlpInitializeThreadPool(), RtlpQueueWorkerThread(), RtlpWorkerThreadProc(), and RtlQueueWorkItem().
|
static |
Definition at line 72 of file workitem.c.
Referenced by RtlpExecuteWorkItem(), RtlpInitializeThreadPool(), RtlpQueueWorkerThread(), and RtlQueueWorkItem().