| 109 | } |
| 110 | |
| 111 | static 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 | |
| 128 | void* PxThreadStart(void* arg) |
| 129 | { |
no test coverage detected