Expand description
pw_thread provides thread execution control utilities.
sleep- Blocks the execution of the current thread for at least the specified duration.sleep_until- Blocks the execution of the current thread until the specified instant.yield_now- Cooperatively gives up a timeslice to the OS scheduler.
Functionsยง
- sleep
- Blocks the execution of the current thread for at least the specified duration. This function may block for longer due to scheduling or resource contention delays.
- sleep_
until - Blocks the execution of the current thread until at least the specified time has been reached. This function may block for longer due to scheduling or resource contention delays.
- yield_
now - Cooperatively gives up a timeslice to the OS scheduler, allowing other threads to run.