MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / PxThreadStart

Function PxThreadStart

physx/source/foundation/src/unix/PsUnixThread.cpp:128–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void* PxThreadStart(void* arg)
129{
130 _ThreadImpl* impl = getThread(reinterpret_cast<ThreadImpl*>(arg));
131 impl->state = _PxThreadStarted;
132
133 // run setTid in thread's context
134 setTid(*impl);
135
136 // then run either the passed in function or execute from the derived class (Runnable).
137 if(impl->fn)
138 (*impl->fn)(impl->arg);
139 else if(impl->arg)
140 (reinterpret_cast<Runnable*>(impl->arg))->execute();
141 return 0;
142}
143}
144
145uint32_t ThreadImpl::getSize()

Callers

nothing calls this directly

Calls 3

setTidFunction · 0.85
getThreadFunction · 0.70
executeMethod · 0.45

Tested by

no test coverage detected