MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / isAlive

Method isAlive

engine/source/platformEmscripten/EmscriptenThread.cpp:125–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125bool Thread::isAlive()
126{
127 if(mData->mThreadID == 0)
128 return false;
129
130 if( mData->mGateway.acquire(false) )
131 {
132 mData->mGateway.release();
133 return false; // we got the lock, it aint alive.
134 }
135 else
136 return true; // we could not get the lock, it must be alive.
137}
138
139U32 Thread::getId()
140{

Callers

nothing calls this directly

Calls 2

acquireMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected