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

Class AlertQueue

PeaceMaker Kernel/AlertQueue.h:11–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include "shared.h"
10
11typedef class AlertQueue
12{
13 BASE_ALERT_INFO alertsHead; // The linked list of alerts.
14 PKSPIN_LOCK alertsLock; // The lock protecting the linked-list of alerts.
15 BOOLEAN destroying; // This boolean indicates to functions that a lock should not be held as we are in the process of destruction.
16
17public:
18 AlertQueue();
19 ~AlertQueue();
20
21 VOID PushAlert (
22 _In_ PBASE_ALERT_INFO Alert,
23 _In_ ULONG AlertSize
24 );
25
26 PBASE_ALERT_INFO PopAlert (
27 VOID
28 );
29
30 BOOLEAN IsQueueEmpty (
31 VOID
32 );
33
34 VOID FreeAlert (
35 _In_ PBASE_ALERT_INFO Alert
36 );
37
38} ALERT_QUEUE, *PALERT_QUEUE;
39
40#define ALERT_LOCK_TAG 'lAmP'
41#define ALERT_QUEUE_ENTRY_TAG 'eAmP'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected