Fawkes beep daemon. More...
Public Member Functions | |
FawkesBeepDaemon () | |
Constructor. | |
virtual void | loop () |
Code to execute in the thread. | |
void | handle_signal (int signum) |
Handle signals. |
Fawkes beep daemon.
Definition at line 53 of file main.cpp.
FawkesBeepDaemon::FawkesBeepDaemon | ( | ) | [inline] |
void FawkesBeepDaemon::handle_signal | ( | int | signum | ) | [inline, virtual] |
Handle signals.
signum | signal number |
Implements fawkes::SignalHandler.
Definition at line 135 of file main.cpp.
References fawkes::Thread::cancel().
virtual void FawkesBeepDaemon::loop | ( | ) | [inline, virtual] |
Code to execute in the thread.
Implement this method to hold the code you want to be executed continously. If you do not implement this method, the default is that the thread will exit. This is useful if you choose to only implement once().
Reimplemented from fawkes::Thread.
Definition at line 67 of file main.cpp.
References BeepController::beep_off(), BeepController::beep_on(), fawkes::BlackBoard::close(), fawkes::SwitchInterface::EnableDurationMessage::duration(), fawkes::BlackBoard::is_alive(), fawkes::SwitchInterface::SetMessage::is_enabled(), fawkes::Interface::is_valid(), fawkes::Interface::msgq_empty(), fawkes::Interface::msgq_first(), fawkes::Interface::msgq_first_is(), fawkes::Interface::msgq_pop(), fawkes::BlackBoard::open_for_writing(), fawkes::SwitchInterface::EnableDurationMessage::value(), and fawkes::SwitchInterface::SetMessage::value().