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

Method setPriority

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

Source from the content-addressed store, hash-verified

387#endif
388
389void ThreadImpl::setPriority(ThreadPriority::Enum val)
390{
391 PX_UNUSED(val);
392#if !PX_APPLE_FAMILY
393 int policy;
394 sched_param s_param;
395 pthread_getschedparam(getThread(this)->thread, &policy, &s_param);
396 s_param.sched_priority = convertPriorityToLinux(val, policy);
397 pthread_setschedparam(getThread(this)->thread, policy, &s_param);
398#endif
399}
400
401ThreadPriority::Enum ThreadImpl::getPriority(Id pthread)
402{

Callers

nothing calls this directly

Calls 3

PX_UNUSEDFunction · 0.85
convertPriorityToLinuxFunction · 0.85
getThreadFunction · 0.70

Tested by

no test coverage detected