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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user