共用方式為


yield Function

Signals the operating system to run other threads, even if the current thread would ordinarily continue to run.

inline void yield() _NOEXCEPT;

Requirements

Header: thread

Namespace: std::this_thread

See Also

Reference

<thread>

Other Resources

C++ Standard Library Header Files