X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/298ca00cdc879c3b040192f1b8b3132fa1d89078..12e50065b4d2d94108c4180d3db24adefa588776:/include/wx/event.h diff --git a/include/wx/event.h b/include/wx/event.h index 7d82d855a3..93b515af2b 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -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