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:
parent
2734f72835
commit
da77c803c1
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue