tin  1.5.9
tsm::sleep_ticks_awaitable Struct Reference

#include <coroutine.h>

Collaboration diagram for tsm::sleep_ticks_awaitable:
Collaboration graph

Public Member Functions

bool await_ready () const noexcept
 
void await_suspend (task::handle_type handle) const noexcept
 
void await_cancel (task_context &context) const noexcept
 
void await_resume () const noexcept
 

Public Attributes

tsm::tick_rep ticks {}
 

Detailed Description

One-shot sleep awaitable driven by explicit scheduler ticks.

This awaitable is the coroutine-facing side of the bounded timer queue. It does not read clocks or convert wall time. Platform code, tests, or replay code advance the executor with elapsed tick counts; when the scheduled tick is due, the task is made ready again.

Use tsm::sleep_ticks(...) or tsm::after_ticks(...) to create it.

Member Function Documentation

◆ await_cancel()

void tsm::sleep_ticks_awaitable::await_cancel ( task_context context) const
inlinenoexcept

◆ await_ready()

bool tsm::sleep_ticks_awaitable::await_ready ( ) const
inlinenoexcept

◆ await_resume()

void tsm::sleep_ticks_awaitable::await_resume ( ) const
inlinenoexcept

◆ await_suspend()

void tsm::sleep_ticks_awaitable::await_suspend ( task::handle_type  handle) const
inlinenoexcept

Member Data Documentation

◆ ticks

tsm::tick_rep tsm::sleep_ticks_awaitable::ticks {}

The documentation for this struct was generated from the following file: