GNU Radio 3.6.5 C++ API

gr_dispatcher Class Reference

invoke callbacks based on select. More...

#include <gr_dispatcher.h>

List of all members.

Public Member Functions

 ~gr_dispatcher ()
bool add_handler (gr_select_handler_sptr handler)
bool del_handler (gr_select_handler_sptr handler)
bool del_handler (gr_select_handler *handler)
void loop (double timeout=10)
 Event dispatching loop.

Friends

GR_CORE_API gr_dispatcher_sptr gr_make_dispatcher ()

Detailed Description

invoke callbacks based on select.

See also:
gr_select_handler

Constructor & Destructor Documentation

gr_dispatcher::~gr_dispatcher ( )

Member Function Documentation

bool gr_dispatcher::add_handler ( gr_select_handler_sptr  handler)
bool gr_dispatcher::del_handler ( gr_select_handler_sptr  handler)
bool gr_dispatcher::del_handler ( gr_select_handler handler)
void gr_dispatcher::loop ( double  timeout = 10)

Event dispatching loop.

Enter a polling loop that only terminates after all gr_select_handlers have been removed. timeout sets the timeout parameter to the select() call, measured in seconds.

Parameters:
timeoutmaximum number of seconds to block in select.

Friends And Related Function Documentation

GR_CORE_API gr_dispatcher_sptr gr_make_dispatcher ( ) [friend]

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