From 3db384424bd7398ffbb7a355cab8f15f3add009f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 2 Oct 2016 19:24:58 +0200 Subject: New upstream version 1.9.1+repack --- numlib/ui.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'numlib/ui.h') diff --git a/numlib/ui.h b/numlib/ui.h index e1d7a58..a282c26 100644 --- a/numlib/ui.h +++ b/numlib/ui.h @@ -21,12 +21,25 @@ extern int ui_initialized; static int *pui_initialized = &ui_initialized; +/* Call this if we decide we are actually going to display */ +/* something in the GUI */ +void ui_UsingGUI(); + #ifdef UNIX # ifdef __APPLE__ extern pthread_t ui_thid; /* Thread ID of main thread running io run loop */ extern pthread_t ui_main_thid; /* Thread ID of thread running application main() */ +/* Run a function in the main thread and return when it is complete */ +void ui_runInMainThreadAndWait(void *cntx, void (*function)(void *context)); + +/* We are about to change the UI */ +void ui_aboutToWait(); + +/* Wait until we are sure our UI change is complete */ +void ui_waitForEvents(); + #ifndef __UI_C__ # define main uimain #endif -- cgit v1.2.3