mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibCore: Allow checking for a ThreadEventQueue without creating one
This commit is contained in:
Notes:
github-actions[bot]
2025-12-31 09:43:02 +00:00
Author: https://github.com/Zaggy1024 Commit: https://github.com/LadybirdBrowser/ladybird/commit/87c30533706 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7269 Reviewed-by: https://github.com/shannonbooth
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user