mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 21:12:08 +02:00
UI/AppKit: Fix wake() to use the correct run loop
wake() was using CFRunLoopGetCurrent() which returns the calling thread's run loop. When called from an I/O thread to wake the main thread's event loop, this would wake the wrong run loop. Fixed by using the stored m_impl->run_loop which is captured at construction time and refers to the event loop's owning thread.
This commit is contained in:
committed by
Andreas Kling
parent
2734f72835
commit
da77c803c1
Notes:
github-actions[bot]
2026-02-06 11:08:36 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/da77c803c17 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7582
@@ -477,7 +477,7 @@ void EventLoopImplementationMacOS::quit(int exit_code)
|
||||
|
||||
void EventLoopImplementationMacOS::wake()
|
||||
{
|
||||
CFRunLoopWakeUp(CFRunLoopGetCurrent());
|
||||
CFRunLoopWakeUp(m_impl->run_loop);
|
||||
}
|
||||
|
||||
bool EventLoopImplementationMacOS::was_exit_requested() const
|
||||
|
||||
Reference in New Issue
Block a user