MACRO
OMNI_THREAD_YIELD - A helper macro calling the platform thread yield function.
DESCRIPTION top
Calling this macro will call the underlying function to yield the current thread to others based on the current thread schedule policy. This macro is called by the
Calling this macro will call the underlying function to yield the current thread to others based on the current thread schedule policy. This macro is called by the
omni::sync::yield_thread function as well.
PLATFORM SPECIFIC top
Defined as
Defined as
#define OMNI_THREAD_YIELD() ::SwitchToThread() on Windows platforms and #define OMNI_THREAD_YIELD() ::sched_yield() on others.