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

Method start

engine/source/platformAndroid/AndroidThread.cpp:89–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void Thread::start()
90{
91 if(isAlive())
92 return;
93
94 // cause start to block out other pthreads from using this Thread,
95 // at least until ThreadRunHandler exits.
96 mData->mGateway.acquire();
97
98 // reset the shouldStop flag, so we'll know when someone asks us to stop.
99 shouldStop = false;
100
101 pthread_create((pthread_t*)(&mData->mThreadID), NULL, ThreadRunHandler, mData);
102}
103
104bool Thread::join()
105{

Callers

nothing calls this directly

Calls 1

acquireMethod · 0.45

Tested by

no test coverage detected