Added wxWakeUpMainThread, wxMutexGuiEnter, wxMutexGuiLeave,
wxMutexGuiLocker and wxThread_IsMain to assist with dealing with GUI access from non-GUI threads. wxPyOnDemandOutputWindow is now thread safe if non-GUI threads use print, sys.stdout.write, etc. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -382,10 +382,28 @@ public:
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
bool wxSafeYield(wxWindow* win=NULL);
|
||||
void wxPostEvent(wxEvtHandler *dest, wxEvent& event);
|
||||
void wxWakeUpIdle();
|
||||
|
||||
bool wxSafeYield(wxWindow* win=NULL);
|
||||
|
||||
void wxWakeUpMainThread();
|
||||
void wxMutexGuiEnter();
|
||||
void wxMutexGuiLeave();
|
||||
|
||||
|
||||
class wxMutexGuiLocker {
|
||||
public:
|
||||
wxMutexGuiLocker();
|
||||
~wxMutexGuiLocker();
|
||||
};
|
||||
|
||||
|
||||
%inline %{
|
||||
bool wxThread_IsMain() {
|
||||
return wxThread::IsMain();
|
||||
}
|
||||
%}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
|
Reference in New Issue
Block a user