Initialize basic members of the AlertQueue class. */
| 10 | Initialize basic members of the AlertQueue class. |
| 11 | */ |
| 12 | AlertQueue::AlertQueue() |
| 13 | { |
| 14 | this->alertsLock = RCAST<PKSPIN_LOCK>(ExAllocatePoolWithTag(NonPagedPool, sizeof(KSPIN_LOCK), ALERT_LOCK_TAG)); |
| 15 | NT_ASSERT(this->alertsLock); |
| 16 | this->destroying = FALSE; |
| 17 | KeInitializeSpinLock(this->alertsLock); |
| 18 | InitializeListHead(RCAST<PLIST_ENTRY>(&this->alertsHead)); |
| 19 | } |
| 20 | |
| 21 | /** |
| 22 | Clear the queue of alerts. |
nothing calls this directly
no outgoing calls
no test coverage detected