MCPcopy Create free account
hub / github.com/bumptop/BumpTop / getState

Method getState

trunk/win/Source/BT_ThreadableUnit.cpp:143–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143ThreadableUnit::State ThreadableUnit::getState()
144{
145 if (_mutex.tryLock())
146 {
147 State s = _state;
148 _mutex.unlock();
149 return s;
150 }
151 else
152 return ThreadableUnit::Processing;
153}
154
155bool ThreadableUnit::getResult()
156{

Callers 2

postPhysicsTimerCallbackFunction · 0.80
onTimerMethod · 0.80

Calls 2

tryLockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected