AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface
Public Member Functions | List of all members
drama::thread::AccessDrama Class Reference

Detailed Description

A class used by threads to access and enable the DRAMA context of an action or of a particular UFACE context.


The first constructor will take the DRAMA lock and enable the context of the TMessHandler specified.

The second constructor takes the DRAMA task lock, saves the current context but leaves it as the current context (used in cases where the context is changed by other means, say by enabling UFACE context.

The destructor will revert the DRAMA context and restore the lock.

With the particular context enabled, DRAMA C language calls will act as if part of that Context (e.g. if you enable an action context, the behavior is as if you are calling from that action).

This class implements the Resource Acquisition Is Initialization design pattern, but is intended to be used for Scope-based Resource Management only.

#include "thread.hh"

Public Member Functions

 AccessDrama (const TMessHandler &messHandler)
 Access the DRAMA context of a particular message handler object.
 
 AccessDrama (Task::mutexType &taskLock)
 Takes the DRAMA lock and saves the current context.
 

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