Go to the source code of this file.
◆ EDEVENT_FIRE
#define EDEVENT_FIRE |
( |
|
method, |
|
|
|
inparams, |
|
|
|
params |
|
) |
| |
Value:inline void fire_##method inparams \
{ \
FX_BEGIN_MAIN_THREAD(); \
TD_AUTOLOCK( m_mutex ); \
++m_EventCounter; \
try \
{ \
unsigned i,
size = m_reactors.size(); \
for (i = 0; i <
size; ++i) \
{ \
if (!m_reactors[i].isNull())\
{\
if (pReactor.get()) \
{ \
FX_SAFE_CALL_REACTOR_EVENT_IMPL( pReactor, method,
params, i ) \
} \
}\
} \
} \
catch( ... ) \
{ \
--m_EventCounter; \
throw; \
} \
if (!(--m_EventCounter))\
FX_END_MAIN_THREAD(); \
}
static OdRxObjectPtr cast(const OdRxObject *pointer)
Definition at line 92 of file EditorImpl.h.
◆ FX_BEGIN_MAIN_THREAD
◆ FX_END_MAIN_THREAD
#define FX_END_MAIN_THREAD |
( |
| ) |
} ); |
◆ FX_SAFE_CALL_REACTOR_EVENT_IMPL
#define FX_SAFE_CALL_REACTOR_EVENT_IMPL |
( |
|
reactor, |
|
|
|
method, |
|
|
|
params, |
|
|
|
index |
|
) |
| { reactor->method params; } |
◆ RXEVENT_FIRE
#define RXEVENT_FIRE |
( |
|
method, |
|
|
|
inparams, |
|
|
|
params |
|
) |
| |
Value:inline void fire_##method inparams \
{ \
FX_BEGIN_MAIN_THREAD(); \
TD_AUTOLOCK( m_mutex ); \
++m_EventCounter; \
try \
{ \
unsigned i,
size = m_reactors.size(); \
for (i = 0; i <
size; ++i) \
{ \
if (!m_reactors[i].isNull()) \
{ \
FX_SAFE_CALL_REACTOR_EVENT_IMPL( m_reactors[i], method,
params, i ) \
} \
} \
} \
catch( ... ) \
{ \
--m_EventCounter; \
throw; \
} \
if (!(--m_EventCounter))\
FX_END_MAIN_THREAD(); \
}
Definition at line 65 of file EditorImpl.h.
◆ OdEditorImplPtr
◆ OdRxEventImplPtr