C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::detail::monitor_action< F > Class Template Reference

A thread safe single shot action encapsulating a function and a function argument error. More...

#include <monitor_action.hpp>

Inherits caf::detail::abstract_monitor_action.

Public Member Functions

 monitor_action (F fn)
 
void dispose () override
 
bool disposed () const noexcept override
 
action::state current_state () const noexcept override
 
resume_result resume (scheduler *, size_t) override
 Resume any pending computation until it is either finished or needs to be re-scheduled later.
 
bool set_reason (error value) override
 

Detailed Description

template<class F>
class caf::detail::monitor_action< F >

A thread safe single shot action encapsulating a function and a function argument error.

Member Function Documentation

◆ current_state()

template<class F >
action::state caf::detail::monitor_action< F >::current_state ( ) const
overridevirtualnoexcept

Implements caf::action::impl.

◆ dispose()

template<class F >
void caf::detail::monitor_action< F >::dispose ( )
overridevirtual

Implements caf::disposable::impl.

◆ disposed()

template<class F >
bool caf::detail::monitor_action< F >::disposed ( ) const
overridevirtualnoexcept

Implements caf::disposable::impl.

◆ resume()

template<class F >
resume_result caf::detail::monitor_action< F >::resume ( scheduler * ,
size_t max_throughput )
overridevirtual

Resume any pending computation until it is either finished or needs to be re-scheduled later.

Implements caf::resumable.


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