add MutexGuiEnter/Leave to wxAppTraits, integrate native GTK+ GUI locking

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2007-12-17 05:37:00 +00:00
parent 4eccf53dd5
commit d254213eb2
9 changed files with 59 additions and 16 deletions

View File

@@ -985,7 +985,7 @@ void WXDLLEXPORT wxWakeUpMainThread()
#endif
}
void WXDLLEXPORT wxMutexGuiEnter()
void wxMutexGuiEnterImpl()
{
// this would dead lock everything...
wxASSERT_MSG( !wxThread::IsMain(),
@@ -1007,7 +1007,7 @@ void WXDLLEXPORT wxMutexGuiEnter()
gs_pCritsectGui->Enter();
}
void WXDLLEXPORT wxMutexGuiLeave()
void wxMutexGuiLeaveImpl()
{
wxCriticalSectionLocker enter(*gs_pCritsectWaitingForGui);