| 9 | #include "shared.h" |
| 10 | |
| 11 | typedef 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 | |
| 17 | public: |
| 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' |
nothing calls this directly
no outgoing calls
no test coverage detected