wxUSE_THREAD -> wxUSE_THREADS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -44,7 +44,7 @@ public:
|
|||||||
wxPGGlobalVarsClass();
|
wxPGGlobalVarsClass();
|
||||||
~wxPGGlobalVarsClass();
|
~wxPGGlobalVarsClass();
|
||||||
|
|
||||||
#if wxUSE_THREAD
|
#if wxUSE_THREADS
|
||||||
// Critical section for handling the globals. Generally it is not needed
|
// Critical section for handling the globals. Generally it is not needed
|
||||||
// since GUI code is supposed to be in single thread. However,
|
// since GUI code is supposed to be in single thread. However,
|
||||||
// we do want the user to be able to convey wxPropertyGridEvents to other
|
// we do want the user to be able to convey wxPropertyGridEvents to other
|
||||||
|
@@ -582,7 +582,7 @@ wxPropertyGrid::~wxPropertyGrid()
|
|||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
#if wxUSE_THREAD
|
#if wxUSE_THREADS
|
||||||
wxCriticalSectionLocker(wxPGGlobalVars->m_critSect);
|
wxCriticalSectionLocker(wxPGGlobalVars->m_critSect);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -5894,7 +5894,7 @@ void wxPropertyGridEvent::OnPropertyGridSet()
|
|||||||
if ( !m_pg )
|
if ( !m_pg )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#if wxUSE_THREAD
|
#if wxUSE_THREADS
|
||||||
wxCriticalSectionLocker(wxPGGlobalVars->m_critSect);
|
wxCriticalSectionLocker(wxPGGlobalVars->m_critSect);
|
||||||
#endif
|
#endif
|
||||||
m_pg->m_liveEvents.push_back(this);
|
m_pg->m_liveEvents.push_back(this);
|
||||||
@@ -5906,7 +5906,7 @@ wxPropertyGridEvent::~wxPropertyGridEvent()
|
|||||||
{
|
{
|
||||||
if ( m_pg )
|
if ( m_pg )
|
||||||
{
|
{
|
||||||
#if wxUSE_THREAD
|
#if wxUSE_THREADS
|
||||||
wxCriticalSectionLocker(wxPGGlobalVars->m_critSect);
|
wxCriticalSectionLocker(wxPGGlobalVars->m_critSect);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user