mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb: Give HTML::EventLoop a "currently running task"
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 04:24:37 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/c8c9112652e
@@ -21,8 +21,13 @@ public:
|
||||
|
||||
void spin_until(Function<bool()> goal_condition);
|
||||
|
||||
Task const* currently_running_task() const { return m_currently_running_task; }
|
||||
|
||||
private:
|
||||
TaskQueue m_task_queue;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#currently-running-task
|
||||
Task* m_currently_running_task { nullptr };
|
||||
};
|
||||
|
||||
EventLoop& main_thread_event_loop();
|
||||
|
||||
Reference in New Issue
Block a user