Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::asio::signal_set_service Class Reference

Default service implementation for a signal set. More...

#include <signal_set_service.hpp>

Inheritance diagram for boost::asio::signal_set_service:
Collaboration diagram for boost::asio::signal_set_service:

Public Types

typedef
detail::signal_set_service::implementation_type 
implementation_type
 The type of a signal set implementation. More...
 

Public Member Functions

 signal_set_service (boost::asio::io_service &io_service)
 Construct a new signal set service for the specified io_service. More...
 
void construct (implementation_type &impl)
 Construct a new signal set implementation. More...
 
void destroy (implementation_type &impl)
 Destroy a signal set implementation. More...
 
boost::system::error_code add (implementation_type &impl, int signal_number, boost::system::error_code &ec)
 Add a signal to a signal_set. More...
 
boost::system::error_code remove (implementation_type &impl, int signal_number, boost::system::error_code &ec)
 Remove a signal to a signal_set. More...
 
boost::system::error_code clear (implementation_type &impl, boost::system::error_code &ec)
 Remove all signals from a signal_set. More...
 
boost::system::error_code cancel (implementation_type &impl, boost::system::error_code &ec)
 Cancel all operations associated with the signal set. More...
 
template<typename SignalHandler >
 BOOST_ASIO_INITFN_RESULT_TYPE (SignalHandler, void(boost::system::error_code, int)) async_wait(implementation_type &impl
 
 BOOST_ASIO_MOVE_ARG (SignalHandler) handler)
 
boost::asio::io_serviceget_io_service ()
 Get the io_service object that owns the service. More...
 

Static Public Attributes

static
boost::asio::detail::service_id
< signal_set_service
id
 

Detailed Description

Default service implementation for a signal set.

Member Typedef Documentation

typedef detail::signal_set_service::implementation_type boost::asio::signal_set_service::implementation_type

The type of a signal set implementation.

Constructor & Destructor Documentation

boost::asio::signal_set_service::signal_set_service ( boost::asio::io_service io_service)
inlineexplicit

Construct a new signal set service for the specified io_service.

Member Function Documentation

boost::system::error_code boost::asio::signal_set_service::add ( implementation_type impl,
int  signal_number,
boost::system::error_code ec 
)
inline

Add a signal to a signal_set.

template<typename SignalHandler >
boost::asio::signal_set_service::BOOST_ASIO_INITFN_RESULT_TYPE ( SignalHandler  ,
void(boost::system::error_code, int)   
)
boost::system::error_code boost::asio::signal_set_service::cancel ( implementation_type impl,
boost::system::error_code ec 
)
inline

Cancel all operations associated with the signal set.

boost::system::error_code boost::asio::signal_set_service::clear ( implementation_type impl,
boost::system::error_code ec 
)
inline

Remove all signals from a signal_set.

void boost::asio::signal_set_service::construct ( implementation_type impl)
inline

Construct a new signal set implementation.

void boost::asio::signal_set_service::destroy ( implementation_type impl)
inline

Destroy a signal set implementation.

boost::asio::io_service& boost::asio::io_service::service::get_io_service ( )
inherited

Get the io_service object that owns the service.

boost::system::error_code boost::asio::signal_set_service::remove ( implementation_type impl,
int  signal_number,
boost::system::error_code ec 
)
inline

Remove a signal to a signal_set.

Member Data Documentation


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