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

Function TlsSetValue

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

Source from the content-addressed store, hash-verified

486}
487
488uint32_t TlsSetValue(uint32_t index, size_t value)
489{
490 int status = pthread_setspecific(pthread_key_t(index), reinterpret_cast<void*>(value));
491 PX_ASSERT(!status);
492 return !status;
493}
494
495// DM: On Linux x86-32, without implementation-specific restrictions
496// the default stack size for a new thread should be 2 megabytes (kernel.org).

Callers 8

startWriteMethod · 0.50
stopWriteMethod · 0.50
startReadMethod · 0.50
stopReadMethod · 0.50
lockReadMethod · 0.50
unlockReadMethod · 0.50
lockWriteMethod · 0.50
unlockWriteMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected