Pop an alert from the queue of alerts. Follows FI-FO. @return The first in queued alert. */
| 88 | @return The first in queued alert. |
| 89 | */ |
| 90 | PBASE_ALERT_INFO |
| 91 | AlertQueue::PopAlert ( |
| 92 | VOID |
| 93 | ) |
| 94 | { |
| 95 | if (this->destroying) |
| 96 | { |
| 97 | return NULL; |
| 98 | } |
| 99 | return RCAST<PBASE_ALERT_INFO>(ExInterlockedRemoveHeadList(RCAST<PLIST_ENTRY>(&this->alertsHead), this->alertsLock)); |
| 100 | } |
| 101 | |
| 102 | /** |
| 103 | Check if the queue of alerts is empty. |
no outgoing calls
no test coverage detected