X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1b62f00d8e3ec5437ab780cb3d73d299cc61e20c..1c09ae547a6aa18ed0442a7b805708408c744f43:/wxPython/src/misc2.i diff --git a/wxPython/src/misc2.i b/wxPython/src/misc2.i index e68acb89f9..c5e890f66f 100644 --- a/wxPython/src/misc2.i +++ b/wxPython/src/misc2.i @@ -22,7 +22,9 @@ #include #include #include +#ifdef __WXMSW__ #include +#endif %} //---------------------------------------------------------------------- @@ -382,10 +384,31 @@ public: //---------------------------------------------------------------------- +bool wxSafeYield(wxWindow* win=NULL); void wxPostEvent(wxEvtHandler *dest, wxEvent& event); void wxWakeUpIdle(); -bool wxSafeYield(wxWindow* win=NULL); + +#ifdef __WXMSW__ +void wxWakeUpMainThread(); +#endif + +void wxMutexGuiEnter(); +void wxMutexGuiLeave(); + + +class wxMutexGuiLocker { +public: + wxMutexGuiLocker(); + ~wxMutexGuiLocker(); +}; + + +%inline %{ + bool wxThread_IsMain() { + return wxThread::IsMain(); + } +%} //----------------------------------------------------------------------