]>
git.saurik.com Git - wxWidgets.git/blob - src/common/appcmn.cpp
33d0cc195646f0626d8ecd67dfc741b42561df02
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: common/appcmn.cpp
3 // Purpose: wxAppBase methods common to all platforms
4 // Author: Vadim Zeitlin
8 // Copyright: (c) Vadim Zeitlin
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ---------------------------------------------------------------------------
18 // ---------------------------------------------------------------------------
21 #pragma implementation "appbase.h"
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
27 #if defined(__BORLANDC__)
35 #include "wx/thread.h"
37 // ===========================================================================
39 // ===========================================================================
41 // ----------------------------------------------------------------------------
42 // some global data defined here
43 // ----------------------------------------------------------------------------
45 IMPLEMENT_DYNAMIC_CLASS(wxClipboardModule
, wxModule
)
47 // ---------------------------------------------------------------------------
49 // ----------------------------------------------------------------------------
51 void wxAppBase::ProcessPendingEvents()
53 // ensure that we're the only thread to modify the pending events list
54 wxCRIT_SECT_LOCKER(locker
, wxPendingEventsLocker
);
56 if ( !wxPendingEvents
)
59 // iterate until the list becomes empty
60 wxNode
*node
= wxPendingEvents
->First();
63 wxEvtHandler
*handler
= (wxEvtHandler
*)node
->Data();
65 handler
->ProcessPendingEvents();
68 node
= wxPendingEvents
->First();