Lely core libraries 2.3.5
lely::ev::Strand Class Reference

A strand executor. More...

#include <strand.hpp>

Inheritance diagram for lely::ev::Strand:
Collaboration diagram for lely::ev::Strand:

Public Member Functions

 Strand (Executor inner_exec)
 ~Strand ()
Executor get_inner_executor () const noexcept
Public Member Functions inherited from lely::ev::Executor
void on_task_init () noexcept
void on_task_fini () noexcept
bool dispatch (ev_task &task) noexcept
template<class F, class... Args>
typename::std::enable_if<!::std::is_base_of< ev_task, typename::std::decay< F >::type >::value, bool >::type dispatch (F &&f, Args &&... args)
void post (ev_task &task) noexcept
template<class F, class... Args>
typename::std::enable_if<!::std::is_base_of< ev_task, typename::std::decay< F >::type >::value >::type post (F &&f, Args &&... args)
void defer (ev_task &task) noexcept
template<class F, class... Args>
typename::std::enable_if<!::std::is_base_of< ev_task, typename::std::decay< F >::type >::value >::type defer (F &&f, Args &&... args)
bool abort (ev_task &task) noexcept
::std::size_t abort_all () noexcept
void run (ev_task &task) noexcept

Detailed Description

A strand executor.

Definition at line 37 of file strand.hpp.

Constructor & Destructor Documentation

◆ Strand()

lely::ev::Strand::Strand ( Executor inner_exec)
inlineexplicit
See also
ev_strand_create()

Definition at line 40 of file strand.hpp.

◆ ~Strand()

lely::ev::Strand::~Strand ( )
inline
See also
ev_strand_destroy()

Definition at line 59 of file strand.hpp.

Member Function Documentation

◆ get_inner_executor()

Executor lely::ev::Strand::get_inner_executor ( ) const
inlinenoexcept
See also
ev_strand_get_inner_exec()

Definition at line 63 of file strand.hpp.


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