-void wm_window_process_events_nosleep(void)
-{
- if (GHOST_ProcessEvents(g_system, 0))
- GHOST_DispatchEvents(g_system);
-}
-
-/* exported as handle callback to bke blender.c */
-void wm_window_testbreak(void)
-{
- static double ltime = 0;
- double curtime = PIL_check_seconds_timer();
-
- BLI_assert(BLI_thread_is_main());
-
- /* only check for breaks every 50 milliseconds
- * if we get called more often.
- */
- if ((curtime - ltime) > 0.05) {
- int hasevent = GHOST_ProcessEvents(g_system, 0); /* 0 is no wait */
-
- if (hasevent)
- GHOST_DispatchEvents(g_system);
-
- ltime = curtime;
- }
-}
-