1 parent 799216c commit fe473c9Copy full SHA for fe473c9
1 file changed
Source/Apple/arcana/threading/task_schedulers.h
@@ -43,9 +43,12 @@ namespace arcana
43
void operator()(CallableT&& callable) const
44
{
45
CallableT _callable{ std::forward<CallableT>(callable) };
46
- CFRunLoopPerformBlock(m_runLoop, kCFRunLoopDefaultMode, ^{
+ CFRunLoopPerformBlock(m_runLoop, kCFRunLoopCommonModes, ^{
47
_callable();
48
});
49
+
50
+ // In case the run loop is idle, we need to wake it up and drain the queue
51
+ CFRunLoopWakeUp(m_runLoop);
52
}
53
54
static run_loop_scheduler get_for_current_thread()
0 commit comments