Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Public Member Functions | List of all members
toolbox::sys::SigWait Class Reference

#include <toolbox/sys/Signal.hpp>

Public Member Functions

 SigWait (std::initializer_list< int > mask={SIGHUP, SIGINT, SIGUSR1, SIGUSR2, SIGTERM})
 
 ~SigWait ()
 
 SigWait (const SigWait &)=delete
 
SigWaitoperator= (const SigWait &)=delete
 
 SigWait (SigWait &&)=delete
 
SigWaitoperator= (SigWait &&)=delete
 
int operator() () const
 
int operator() (Duration timeout) const
 Returns zero on timeout.
 
template<typename RepT , typename PeriodT >
int operator() (std::chrono::duration< RepT, PeriodT > timeout) const
 

Detailed Description

Definition at line 27 of file Signal.hpp.

Constructor & Destructor Documentation

◆ SigWait() [1/3]

toolbox::sys::SigWait::SigWait ( std::initializer_list< int mask = {SIGHUPSIGINTSIGUSR1SIGUSR2SIGTERM})

Definition at line 26 of file Signal.cpp.

◆ ~SigWait()

toolbox::sys::SigWait::~SigWait ( )

Definition at line 39 of file Signal.cpp.

◆ SigWait() [2/3]

toolbox::sys::SigWait::SigWait ( const SigWait )
delete

◆ SigWait() [3/3]

toolbox::sys::SigWait::SigWait ( SigWait &&  )
delete

Member Function Documentation

◆ operator=() [1/2]

SigWait & toolbox::sys::SigWait::operator= ( const SigWait )
delete

◆ operator=() [2/2]

SigWait & toolbox::sys::SigWait::operator= ( SigWait &&  )
delete

◆ operator()() [1/3]

int toolbox::sys::SigWait::operator() ( ) const

Definition at line 45 of file Signal.cpp.

◆ operator()() [2/3]

int toolbox::sys::SigWait::operator() ( Duration  timeout) const

Returns zero on timeout.

Definition at line 61 of file Signal.cpp.

◆ operator()() [3/3]

template<typename RepT , typename PeriodT >
int toolbox::sys::SigWait::operator() ( std::chrono::duration< RepT, PeriodT timeout) const
inline

Definition at line 45 of file Signal.hpp.


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