BEAST/BSE - Better Audio System and Sound Engine  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
Bse::TickStamp::Wakeup Class Reference

Inherits enable_shared_from_this< Wakeup >.

Public Member Functions

void awake_after (uint64 stamp)
 
void awake_before (uint64 stamp)
 

Protected Member Functions

 Wakeup (const std::function< void()> &wakeup)
 

Static Protected Member Functions

static void _emit_wakeups (uint64 wakeup_stamp)
 

Member Function Documentation

void Bse::TickStamp::Wakeup::awake_after ( uint64  stamp)
Parameters
stampstamp to trigger wakeup

Wake the current thread up at a future tick increment which exceeds stamp.

void Bse::TickStamp::Wakeup::awake_before ( uint64  stamp)
Parameters
stamptick stamp update to trigger wakeup

Wakeup the currently running thread upon the last global tick stamp update (see Bse::TickStamp::current()) that happens prior to updating the global tick stamp to tick_stamp. (If the moment of wakeup has already passed by, the thread is woken up at the next global tick stamp update.)


The documentation for this class was generated from the following files: