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

@@ -664,6 +664,31 @@ void wxAppTraitsBase::SetLocale()
}
#endif
#if wxUSE_THREADS
void wxMutexGuiEnterImpl();
void wxMutexGuiLeaveImpl();
void wxAppTraitsBase::MutexGuiEnter()
{
wxMutexGuiEnterImpl();
}
void wxAppTraitsBase::MutexGuiLeave()
{
wxMutexGuiLeaveImpl();
}
void WXDLLIMPEXP_BASE wxMutexGuiEnter()
{
wxAppConsoleBase::GetInstance()->GetTraits()->MutexGuiEnter();
}
void WXDLLIMPEXP_BASE wxMutexGuiLeave()
{
wxAppConsoleBase::GetInstance()->GetTraits()->MutexGuiLeave();
}
#endif // wxUSE_THREADS
#ifdef __WXDEBUG__
bool wxAppTraitsBase::ShowAssertDialog(const wxString& msgOriginal)