Operations on the calling execution. More...
Functions | |
| Thread::Id | get_id () noexcept |
| Identifier of the calling execution. | |
| void | yield () noexcept |
| Offer the calling execution. | |
| template<class Rep, class Period> | |
| STORMBYTE_FORCE_INLINE void | sleep_for (const std::chrono::duration< Rep, Period > &time) noexcept |
| Sleep the calling execution. | |
| template<class Clock, class Duration> | |
| STORMBYTE_FORCE_INLINE void | sleep_until (const std::chrono::time_point< Clock, Duration > &time) noexcept |
| Sleep until a time point. | |
Operations on the calling execution.
The names match std::this_thread.
|
inlinenoexcept |
Identifier of the calling execution.
|
noexcept |
Sleep the calling execution.
| Rep | Duration representation. |
| Period | Duration period. |
| time | Duration. A negative duration returns immediately. |
|
noexcept |
|
inlinenoexcept |
Offer the calling execution.