senf::scheduler::BlockSignals Class Reference

Temporarily block all signals. More...

#include <senf/Scheduler/Scheduler.hh>

List of all members.


Detailed Description

Temporarily block all signals.

This class is used to temporarily block all signals in a critical section.

// Begin critical section
{
    senf::scheduler::BlockSignals signalBlocker;

    // critical code executed with all signals blocked
}
// End critical section

You need to take care not to block since even the watchdog timer will be disabled while executing within a critical section.

Definition at line 373 of file Scheduler.hh.


Public Member Functions

  BlockSignals (bool initiallyBlocked=true)
  Block signals until end of scope.
  ~BlockSignals ()
  Release all signal blocks.
void  block ()
  Block signals if not blocked.
void  unblock ()
  Unblock signals if blocked.
bool  blocked () const
  true, if signals currently blocked, false < otherwise

Constructor & Destructor Documentation

senf::scheduler::BlockSignals::
BlockSignals ( bool  initiallyBlocked = true )

Block signals until end of scope.

Parameters:
[in]  initiallyBlocked  set to false to not automatically block signals initially

Definition at line 174 of file Scheduler.cc.

senf::scheduler::BlockSignals::
~BlockSignals ()

Release all signal blocks.

Definition at line 91 of file Scheduler.cci.


Member Function Documentation

void senf::scheduler::BlockSignals::
block ()

Block signals if not blocked.

Definition at line 182 of file Scheduler.cc.

bool senf::scheduler::BlockSignals::
blocked ()

true, if signals currently blocked, false < otherwise

Definition at line 96 of file Scheduler.cci.

void senf::scheduler::BlockSignals::
unblock ()

Unblock signals if blocked.

Definition at line 190 of file Scheduler.cc.


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