Anklang C++ API 0.0.0
Loading...
Searching...
No Matches
DispatcherSource

#include "loop.hh"

Inheritance diagram for DispatcherSource:
[legend]

Static Public Member Functions

static DispatcherSourcePcreate (const DispatcherSlot &slot)

Protected Member Functions

virtual boolcheck (const LoopState &state)
virtual voiddestroy ()
virtual booldispatch (const LoopState &state)
DispatcherSource (const DispatcherSlot &slot)
virtual boolprepare (const LoopState &state, int64 *timeout_usecs_p)
virtual~DispatcherSource ()
- Protected Member Functions inherited from EventSource
EventSource ()
uintn_pfds ()
uintsource_id ()
virtual~EventSource ()

Additional Inherited Members

- Public Member Functions inherited from EventSource
voidadd_poll (PollFD *const pfd)
voidloop_remove ()
MainLoop *main_loop () const
boolmay_recurse () const
voidmay_recurse (bool may_recurse)
boolprimary () const
voidprimary (bool is_primary)
boolrecursion () const
voidremove_poll (PollFD *const pfd)
- Protected Attributes inherited from EventSource
uintdispatching_: 1
uintid_
EventLoop *loop_
uint8loop_state_
uintmay_recurse_: 1
struct {
   uint   idx
   PollFD *   pfd
} *pfds_
uintprimary_: 1
int16priority_
uintwas_dispatching_: 1

Detailed Description

EventLoop source for handler execution.

Constructor & Destructor Documentation

~DispatcherSource()

~DispatcherSource ( )
protectedvirtual

DispatcherSource()

DispatcherSource ( const DispatcherSlot & slot)
explicitprotected

Member Function Documentation

prepare()

bool prepare ( const LoopState & state,
int64 * timeout_usecs_p
)
protectedvirtual

Prepare the source for dispatching (true return) or polling (false).

Implements EventSource.

check()

bool check ( const LoopState & state)
protectedvirtual

Check the source and its PollFD descriptors for dispatching (true return).

Implements EventSource.

dispatch()

bool dispatch ( const LoopState & state)
protectedvirtual

Dispatch source, returns if it should be kept alive.

Implements EventSource.

destroy()

void destroy ( )
protectedvirtual

Reimplemented from EventSource.

create()

static DispatcherSourceP create ( const DispatcherSlot & slot)
static