LRESULT CALLBACK ThreadingWindowWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { if (message == threadingFiredMessage) dispatchFunctionsFromMainThread(); else return DefWindowProc(hWnd, message, wParam, lParam); return 0; }
void scheduleDispatchFunctionsOnMainThread() { #if ENABLE(SINGLE_THREADED) dispatchFunctionsFromMainThread(); #elif PLATFORM(BLACKBERRY) Olympia::Platform::Client::get()->scheduleCallOnMainThread(dispatchFunctionsFromMainThread); #else #error "Please implement MainThreadOlympia for this platform" #endif }
// Callback in the main thread. static void timeoutFired(void*) { dispatchFunctionsFromMainThread(); }
static gboolean timeoutFired(gpointer) { dispatchFunctionsFromMainThread(); return FALSE; }
static int timeoutFired(void*) { dispatchFunctionsFromMainThread(); return ECORE_CALLBACK_CANCEL; }
void MainThreadInvoker::dispatch() { dispatchFunctionsFromMainThread(); }
static bool timeoutFired(void* /*in_data*/) { dispatchFunctionsFromMainThread(); return false; }