m_isWindow = FALSE;
m_pendingEvents = (wxList *) NULL;
#if wxUSE_THREADS
+# if !defined(__VISAGECPP__)
m_eventsLocker = new wxCriticalSection;
+# endif
#endif
}
delete m_pendingEvents;
#if wxUSE_THREADS
+# if !defined(__VISAGECPP__)
delete m_eventsLocker;
+# endif
#endif
}
bool wxEvtHandler::ProcessThreadEvent(wxEvent& event)
{
+#if defined(__VISAGECPP__)
+ wxCriticalSectionLocker locker(m_eventsLocker);
+#else
wxCriticalSectionLocker locker(*m_eventsLocker);
+#endif
// check that we are really in a child thread
wxASSERT_MSG( !wxThread::IsMain(),
void wxEvtHandler::ProcessPendingEvents()
{
+#if defined(__VISAGECPP__)
+ wxCRIT_SECT_LOCKER(locker, &m_eventsLocker);
+#else
wxCRIT_SECT_LOCKER(locker, m_eventsLocker);
+#endif
wxNode *node = m_pendingEvents->First();
wxEvent *event;
m_dynamicEvents->Append( (wxObject*) entry );
}
+#if 0
+// DW: not in header anymore???
bool wxEvtHandler::Disconnect( int id, int lastId, wxEventType eventType,
wxObjectEventFunction func,
wxObject *userData )
}
return FALSE;
}
+#endif
bool wxEvtHandler::SearchDynamicEventTable( wxEvent& event )
{