LibCore: Allow checking for a ThreadEventQueue without creating one

This commit is contained in:
Zaggy1024
2025-12-29 18:12:45 -06:00
committed by Shannon Booth
parent bd82dfa048
commit 87c3053370
Notes: github-actions[bot] 2025-12-31 09:43:02 +00:00
2 changed files with 8 additions and 2 deletions

View File

@@ -20,6 +20,7 @@ class ThreadEventQueue {
AK_MAKE_NONMOVABLE(ThreadEventQueue);
public:
static ThreadEventQueue* current_or_null();
static ThreadEventQueue& current();
// Process all queued events. Returns the number of events that were processed.