X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b89156b5dbb3c1270452379801a79613cd69bb32..650368d057896c5bf6b1f2294766e92b7dbb7f20:/src/gtk/threadgui.inc diff --git a/src/gtk/threadgui.inc b/src/gtk/threadgui.inc index 165fef3c01..46073d4e0b 100644 --- a/src/gtk/threadgui.inc +++ b/src/gtk/threadgui.inc @@ -21,7 +21,6 @@ #include - ///////////////////////////////////////////////////////////////////////////// // Static variables ///////////////////////////////////////////////////////////////////////////// @@ -63,3 +62,29 @@ static void wxThreadGuiExit() close(p_thrd_pipe[0]); close(p_thrd_pipe[1]); } + +#ifdef NO_DEFINE_GDK_1_1 + +void wxMutexGuiEnter() +{ + gdk_mutex_enter(); +} + +void wxMutexGuiLeave() +{ + gdk_mutex_leave(); +} + +#else + +void wxMutexGuiEnter() +{ + wxMainMutex->Lock(); +} + +void wxMutexGuiLeave() +{ + wxMainMutex->Unlock(); +} + +#endif