added accessor function to hide __VISAGECPP__ ugliness and avoid having #ifdef's for it every other line
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2417,8 +2417,14 @@ protected:
|
||||
|
||||
#if wxUSE_THREADS
|
||||
#if defined (__VISAGECPP__)
|
||||
const wxCriticalSection& Lock() const { return m_eventsLocker; }
|
||||
wxCriticalSection& Lock() { return m_eventsLocker; }
|
||||
|
||||
wxCriticalSection m_eventsLocker;
|
||||
# else
|
||||
const wxCriticalSection& Lock() const { return *m_eventsLocker; }
|
||||
wxCriticalSection& Lock() { return *m_eventsLocker; }
|
||||
|
||||
wxCriticalSection* m_eventsLocker;
|
||||
# endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user