]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/event.h
don't use WXDLLEXPORT with nested template classes: this doesn't work
[wxWidgets.git] / include / wx / event.h
index 7d82d855a325c0aade6bbe44c5aac852a1988178..93b515af2b02161f06e1275a2ff82f45cf55a8ef 100644 (file)
@@ -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