void wxApp::WakeUpIdle() { #ifdef __WXMAC_OSX__ if (m_macEventPosted) { CFRunLoopSourceSignal(m_macEventPosted); } #endif wxMacWakeUp() ; }
void wxMacAddEvent( wxMacNotifierTableRef table , wxMacNotificationProcPtr handler , unsigned long event , void* data , short wakeUp ) { wxMacNotificationEvents *e = (wxMacNotificationEvents *) table ; wxASSERT_MSG( handler != NULL , wxT("illegal notification proc ptr") ) ; /* this should be protected eventually */ short index = e->top++ ; if ( e->top == kMaxEvents ) e->top = 0 ; e->proc[index] = handler ; e->events[index] = event ; e->data[index] = data ; if ( wakeUp ) wxMacWakeUp() ; }
// wake up the main thread void WXDLLEXPORT wxWakeUpMainThread() { wxMacWakeUp(); }
// wake up the main thread void WXDLLIMPEXP_BASE wxWakeUpMainThread() { wxMacWakeUp(); }
void wxGUIEventLoop::WakeUp() { extern void wxMacWakeUp(); wxMacWakeUp(); }