24#ifndef LELY_EV_STRAND_HPP_
25#define LELY_EV_STRAND_HPP_
42 if (!exec_) ::lely::util::throw_errc(
"Strand");
52 operator=(
Strand&& other)
noexcept {
54 swap(exec_, other.exec_);
An abstract task executor. This class is a wrapper around #ev_exec_t*.
Executor get_inner_executor() const noexcept
Strand(Executor inner_exec)
This header file is part of the utilities library; it contains C++ convenience functions for creating...
This header file is part of the event library; it contains the C++ interface for the abstract task ex...
This header file is part of the event library; it contains the strand executor declarations.
void ev_strand_destroy(ev_exec_t *exec)
Destroys a strand executor.
ev_exec_t * ev_strand_get_inner_exec(const ev_exec_t *exec)
Returns a pointer to the inner executor of a strand.
ev_exec_t * ev_strand_create(ev_exec_t *inner_exec)
Creates a strand executor.