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

Method kill

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

Source from the content-addressed store, hash-verified

270}
271
272void ThreadImpl::kill()
273{
274#ifndef ANDROID
275 if(getThread(this)->state == _PxThreadStarted)
276 pthread_cancel(getThread(this)->thread);
277 getThread(this)->state = _PxThreadStopped;
278#else
279 shdfnd::getFoundation().error(PxErrorCode::eDEBUG_WARNING, __FILE__, __LINE__,
280 "ThreadImpl::kill() called, but is not implemented");
281#endif
282}
283
284void ThreadImpl::sleep(uint32_t ms)
285{

Callers

nothing calls this directly

Calls 2

errorMethod · 0.80
getThreadFunction · 0.70

Tested by

no test coverage detected