std::this_thread::yield

From Cppreference

Jump to: navigation, search
Defined in header <thread>

void yield();
(C++11 feature)

Hints the implementation to reschedule the execution of threads. Another thread may continue execution after the call to this function.

[edit] Parameters

(none)

[edit] Return value

(none)

[edit] Example