OS  v1.7.5
Documentation
Loading...
Searching...
No Matches
qOS::co::handle Class Referencefinal

A Co-Routine handle. More...

#include <coroutine.hpp>

Public Member Functions

 handle ()=default
 
void try_restart (void) noexcept
 Try to execute the co::restart() statement externally.
 
void try_suspend (void) noexcept
 Try to suspend the coroutine execution externally.
 
void try_resume (void) noexcept
 Try to resume the coroutine execution externally after a suspend operation.
 
void try_set (co::state p) noexcept
 Try to execute co::setPosition() statement externally.
 

Detailed Description

A Co-Routine handle.

Constructor & Destructor Documentation

◆ handle()

qOS::co::handle::handle ( )
default

Member Function Documentation

◆ try_restart()

void qOS::co::handle::try_restart ( void )
noexcept

Try to execute the co::restart() statement externally.

◆ try_resume()

void qOS::co::handle::try_resume ( void )
noexcept

Try to resume the coroutine execution externally after a suspend operation.

◆ try_set()

void qOS::co::handle::try_set ( co::state p)
noexcept

Try to execute co::setPosition() statement externally.

◆ try_suspend()

void qOS::co::handle::try_suspend ( void )
noexcept

Try to suspend the coroutine execution externally.