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

Function setTid

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

Source from the content-addressed store, hash-verified

109}
110
111static void setTid(_ThreadImpl& threadImpl)
112{
113// query TID
114#if PX_PS4 || (defined (TARGET_OS_TV) && TARGET_OS_TV)
115// AM: TODO: neither of the below are implemented
116#elif PX_APPLE_FAMILY
117 threadImpl.tid = syscall(SYS_gettid);
118#elif PX_EMSCRIPTEN
119 threadImpl.tid = pthread_self();
120#else
121 threadImpl.tid = syscall(__NR_gettid);
122#endif
123
124 // notify/unblock parent thread
125 atomicCompareExchange(&(threadImpl.threadStarted), 1, 0);
126}
127
128void* PxThreadStart(void* arg)
129{

Callers 1

PxThreadStartFunction · 0.85

Calls 1

atomicCompareExchangeFunction · 0.70

Tested by

no test coverage detected