Thread safe mapping from evtHandlerId to wxEvtHandler*. More...
#include <springunitsync.h>

Public Member Functions | |
| EvtHandlerCollection () | |
| int | Add (wxEvtHandler *evtHandler) |
| void | Remove (int evtHandlerId) |
| void | PostEvent (int evtHandlerId, wxEvent &evt) |
Private Types | |
| typedef std::map< int, wxEvtHandler * > | EvtHandlerMap |
Private Attributes | |
| wxCriticalSection | m_lock |
| EvtHandlerMap | m_items |
| int | m_last_id |
Thread safe mapping from evtHandlerId to wxEvtHandler*.
Definition at line 36 of file springunitsync.h.
typedef std::map<int, wxEvtHandler*> EvtHandlerCollection::EvtHandlerMap [private] |
Definition at line 46 of file springunitsync.h.
| EvtHandlerCollection::EvtHandlerCollection | ( | ) | [inline] |
Definition at line 39 of file springunitsync.h.
| int EvtHandlerCollection::Add | ( | wxEvtHandler * | evtHandler | ) |
Definition at line 1364 of file springunitsync.cpp.
| void EvtHandlerCollection::PostEvent | ( | int | evtHandlerId, | |
| wxEvent & | evt | |||
| ) |
Definition at line 1379 of file springunitsync.cpp.
| void EvtHandlerCollection::Remove | ( | int | evtHandlerId | ) |
Definition at line 1372 of file springunitsync.cpp.
EvtHandlerMap EvtHandlerCollection::m_items [private] |
Definition at line 49 of file springunitsync.h.
int EvtHandlerCollection::m_last_id [private] |
Definition at line 50 of file springunitsync.h.
wxCriticalSection EvtHandlerCollection::m_lock [mutable, private] |
Definition at line 48 of file springunitsync.h.
1.6.3