ReactOS
0.4.15-dev-4923-g379188a
|
Go to the source code of this file.
Classes | |
struct | _WORK_ITEM |
Macros | |
#define | NDEBUG |
#define | FOURCC(w, x, y, z) (((w) << 24) | ((x) << 16) | ((y) << 8) | (z)) |
#define | CHEW_TAG FOURCC('C','H','E','W') |
Typedefs | |
typedef struct _WORK_ITEM | WORK_ITEM |
typedef struct _WORK_ITEM * | PWORK_ITEM |
Functions | |
VOID | ChewInit (PDEVICE_OBJECT DeviceObject) |
VOID | ChewShutdown (VOID) |
VOID NTAPI | ChewWorkItem (PDEVICE_OBJECT DeviceObject, PVOID ChewItem) |
BOOLEAN | ChewCreate (VOID(*Worker)(PVOID), PVOID WorkerContext) |
Variables | |
PDEVICE_OBJECT | WorkQueueDevice |
LIST_ENTRY | WorkQueue |
KSPIN_LOCK | WorkQueueLock |
KEVENT | WorkQueueClear |
Definition at line 16 of file workqueue.c.
#define NDEBUG |
Definition at line 13 of file workqueue.c.
typedef struct _WORK_ITEM * PWORK_ITEM |
typedef struct _WORK_ITEM WORK_ITEM |
Creates and queues a work item.
Definition at line 65 of file workqueue.c.
Referenced by CompleteBucket(), LanSubmitReceiveWork(), LoopTransmit(), and ProtocolStatus().
VOID ChewInit | ( | PDEVICE_OBJECT | DeviceObject | ) |
Initialize CHEW, given a device object (since IoAllocateWorkItem relies on it).
Definition at line 32 of file workqueue.c.
Referenced by DriverEntry().
Shutdown CHEW, waits for remaining work items.
Definition at line 40 of file workqueue.c.
Referenced by TiUnload().
VOID NTAPI ChewWorkItem | ( | PDEVICE_OBJECT | DeviceObject, |
PVOID | ChewItem | ||
) |
Definition at line 45 of file workqueue.c.
Referenced by ChewCreate().
LIST_ENTRY WorkQueue |
Definition at line 20 of file workqueue.c.
Referenced by CcPostWorkQueue(), ChewCreate(), ChewInit(), ChewWorkItem(), ExpWorkerThreadEntryPoint(), ExQueueWorkItem(), RxBootstrapWorkerThreadDispatcher(), RxInitializeWorkQueue(), RxInsertWorkQueueItem(), RxpWorkerThreadDispatcher(), RxSpinUpRequestsDispatcher(), and RxSpinUpWorkerThread().
KEVENT WorkQueueClear |
Definition at line 22 of file workqueue.c.
Referenced by ChewCreate(), ChewInit(), ChewShutdown(), and ChewWorkItem().
PDEVICE_OBJECT WorkQueueDevice |
Definition at line 19 of file workqueue.c.
Referenced by ChewCreate(), and ChewInit().
KSPIN_LOCK WorkQueueLock |
Definition at line 21 of file workqueue.c.
Referenced by ChewCreate(), ChewInit(), and ChewWorkItem().