Bayonne2 / Common C++ 2 Framework
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes
Cancellation Class Reference

A class to automatically set the thread cancellation mode of a member function. More...

#include <thread.h>

Collaboration diagram for Cancellation:
Collaboration graph
[legend]

Public Member Functions

 Cancellation (Thread::Cancel cancel)
 
 ~Cancellation ()
 

Private Attributes

Thread::Cancel prior
 

Detailed Description

A class to automatically set the thread cancellation mode of a member function.

When the member function returns and the automatic variable falls out of scope, the previous thread cancellation mode is restored.

Author
David Sugar dyfet.nosp@m.@gnu.nosp@m..org Automatic cancellation mode setting.

Definition at line 1524 of file thread.h.

Constructor & Destructor Documentation

Cancellation::Cancellation ( Thread::Cancel  cancel)
Cancellation::~Cancellation ( )

Field Documentation

Thread::Cancel Cancellation::prior
private

Definition at line 1527 of file thread.h.


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