MCPcopy Create free account
hub / github.com/carbonengine/trinity / OnListModified

Method OnListModified

trinity/Particle/Tr2PlaneConstraint.cpp:83–98  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- Description: Implements IListNotify interface. Notifies inserted emitters that they are going to be updated in a multi-threaded scenario. Arguments: event - List event value - List element modified theList - List --------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

81// theList - List
82// --------------------------------------------------------------------------------------
83void Tr2PlaneConstraint::OnListModified(
84 long event,
85 ssize_t,
86 ssize_t,
87 IRoot* value,
88 const IList* theList )
89{
90 if( ( event & BELIST_LOADING ) == 0 && ( event & BELIST_EVENTMASK ) == BELIST_INSERTED && theList == &m_onCollisionEmitters && value )
91 {
92 ITr2GenericEmitterPtr emitter( BlueCastPtr( value ) );
93 if( emitter )
94 {
95 emitter->SetThreadSafeFlag();
96 }
97 }
98}
99
100// --------------------------------------------------------------------------------------
101// Description:

Callers

nothing calls this directly

Calls 1

SetThreadSafeFlagMethod · 0.45

Tested by

no test coverage detected