AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface
|
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. | |
Click here for the DRAMA home page and here for the AAO home page.
For more information, contact tony.farrell@mq.edu.au
Generated on Thu Dec 12 2024 23:07:36 for AAO DRAMA/DRAMA2 C++ Interface by 1.9.8