git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4657
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
m_isWindow = FALSE;
m_pendingEvents = (wxList *) NULL;
#if wxUSE_THREADS
m_isWindow = FALSE;
m_pendingEvents = (wxList *) NULL;
#if wxUSE_THREADS
+# if !defined(__VISAGECPP__)
m_eventsLocker = new wxCriticalSection;
m_eventsLocker = new wxCriticalSection;
delete m_pendingEvents;
#if wxUSE_THREADS
delete m_pendingEvents;
#if wxUSE_THREADS
+# if !defined(__VISAGECPP__)
bool wxEvtHandler::ProcessThreadEvent(wxEvent& event)
{
bool wxEvtHandler::ProcessThreadEvent(wxEvent& event)
{
+#if defined(__VISAGECPP__)
+ wxCriticalSectionLocker locker(m_eventsLocker);
+#else
wxCriticalSectionLocker locker(*m_eventsLocker);
wxCriticalSectionLocker locker(*m_eventsLocker);
// check that we are really in a child thread
wxASSERT_MSG( !wxThread::IsMain(),
// check that we are really in a child thread
wxASSERT_MSG( !wxThread::IsMain(),
void wxEvtHandler::ProcessPendingEvents()
{
void wxEvtHandler::ProcessPendingEvents()
{
+#if defined(__VISAGECPP__)
+ wxCRIT_SECT_LOCKER(locker, &m_eventsLocker);
+#else
wxCRIT_SECT_LOCKER(locker, m_eventsLocker);
wxCRIT_SECT_LOCKER(locker, m_eventsLocker);
wxNode *node = m_pendingEvents->First();
wxEvent *event;
wxNode *node = m_pendingEvents->First();
wxEvent *event;
m_dynamicEvents->Append( (wxObject*) entry );
}
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 )
bool wxEvtHandler::Disconnect( int id, int lastId, wxEventType eventType,
wxObjectEventFunction func,
wxObject *userData )
bool wxEvtHandler::SearchDynamicEventTable( wxEvent& event )
{
bool wxEvtHandler::SearchDynamicEventTable( wxEvent& event )
{