MCPcopy Create free account
hub / github.com/D4stiny/PeaceMaker / IsQueueEmpty

Method IsQueueEmpty

PeaceMaker Kernel/AlertQueue.cpp:106–119  ·  view source on GitHub ↗

Check if the queue of alerts is empty. @return Whether or not the alerts queue is empty. */

Source from the content-addressed store, hash-verified

104 @return Whether or not the alerts queue is empty.
105*/
106BOOLEAN
107AlertQueue::IsQueueEmpty (
108 VOID
109 )
110{
111 BOOLEAN empty;
112 KIRQL oldIrql;
113
114 ExAcquireSpinLock(this->alertsLock, &oldIrql);
115 empty = IsListEmpty(RCAST<PLIST_ENTRY>(&this->alertsHead));
116 ExReleaseSpinLock(this->alertsLock, oldIrql);
117
118 return empty;
119}
120
121
122/**

Callers 1

IOCTLDeviceControlMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected