Class coro::event

Class List > coro > event

RAII + stateful eventfd __More...

  • #include <linux.h>

Public Functions

Type Name
event () noexcept
event (const event &) = delete
event (event &&) = delete
uint64_t fd () noexcept const
bool is_set () noexcept const
event & operator= (const event &) = delete
event & operator= (event &&) = delete
void reset () noexcept
void set () noexcept
~event () noexcept

Detailed Description

See also: https://github.com/grpc/grpc/blob/master/src/core/lib/iomgr/is_epollexclusive_available.cc If the object is signaled(set), the bound epoll_owner will yield suspended coroutine through epoll_event's user data.

Its object can be co_awaited multiple times

Public Functions Documentation

function event [1/3]

coro::event::event () noexcept

function event [2/3]

coro::event::event (
    const event &
) = delete

function event [3/3]

coro::event::event (
    event &&
) = delete

function fd

uint64_t coro::event::fd () noexcept const

function is_set

bool coro::event::is_set () noexcept const

function operator=

event & coro::event::operator= (
    const event &
) = delete

function operator=

event & coro::event::operator= (
    event &&
) = delete

function reset

void coro::event::reset () noexcept

function set

void coro::event::set () noexcept

function ~event

coro::event::~event () noexcept

The documentation for this class was generated from the following file interface/coroutine/linux.h