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

Method isAlive

engine/source/platformAndroid/AndroidThread.cpp:122–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

acquireMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected