/build/buildd-libassa_3.5.0-1.1-mipsel-sAQQwh/libassa-3.5.0/assa/SigSet.h File Reference

SigSet is a wrapper for UNIX sigset_t structure that provides all manipulators on this structure as well. More...

#include <signal.h>
#include <errno.h>

Go to the source code of this file.

Classes

class  ASSA::SigSet

Namespaces

namespace  ASSA

Detailed Description

SigSet is a wrapper for UNIX sigset_t structure that provides all manipulators on this structure as well.

The conversoin operator that converts SigSet to a pointer to the internal sigset_t data member for direct use with C-library functions can be used as follows:

SigSet source; sigset_t* targetp;

targetp = source;

Because lvalue is expected to be of the type sigset_t*, and there is a conversion operator defined for SigSet, the conversion happens automatically.

Another example would be to use it in conjunction with 'struct sigaction':

struct sigaction action; SigSet siganls_to_block;

manipulat signal set in some meaningful way

action.sa_mask = *signals_to_block;

Definition in file SigSet.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Dec 23 16:01:27 2009 for libassa by  doxygen 1.6.1