MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / yield

Function yield

src/tinythread/tinythread.h:683–690  ·  view source on GitHub ↗

Yield execution to another thread. Offers the operating system the opportunity to schedule another thread that is ready to run on the current processor.

Source from the content-addressed store, hash-verified

681 /// Offers the operating system the opportunity to schedule another thread
682 /// that is ready to run on the current processor.
683 inline void yield()
684 {
685#if defined(_TTHREAD_WIN32_)
686 Sleep(0);
687#else
688 sched_yield();
689#endif
690 }
691
692 /// Blocks the calling thread for a period of time.
693 /// @param[in] aTime Minimum time to put the thread to sleep.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected