MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes | Static Private Attributes
DtScopedNotifyLevelChange Class Reference

Changes the notify level and locks out other temporary notify level changes while the object is in scope. More...

+ Collaboration diagram for DtScopedNotifyLevelChange:

Public Member Functions

 DtScopedNotifyLevelChange (int newNotifyLevel=MAKRti::DtNotifyLevel)
 Constructor. More...
 
 ~DtScopedNotifyLevelChange ()
 Destructor. Reverts the notify level to its original value. More...
 
void changeNotifyLevel (int newNotifyLevel)
 Changes the temporary notify level to the new value. More...
 
void restoreNotifyLevel ()
 Restores the temporary notify level to the original value. More...
 

Private Attributes

int myOrigNotifyLevel
 The notify level prior to changing it. More...
 

Static Private Attributes

static MAKRti::DtMutex theMutex
 The mutex to prevent simultaneous notify level changes. More...
 

Detailed Description

Changes the notify level and locks out other temporary notify level changes while the object is in scope.

Constructor & Destructor Documentation

DtScopedNotifyLevelChange::DtScopedNotifyLevelChange ( int  newNotifyLevel = MAKRti::DtNotifyLevel)

Constructor.

Changes the notify level to the given value. If no value is specified a lock is obtained without making a notify level change.

DtScopedNotifyLevelChange::~DtScopedNotifyLevelChange ( )

Destructor. Reverts the notify level to its original value.

Member Function Documentation

void DtScopedNotifyLevelChange::changeNotifyLevel ( int  newNotifyLevel)

Changes the temporary notify level to the new value.

void DtScopedNotifyLevelChange::restoreNotifyLevel ( )

Restores the temporary notify level to the original value.

Does not release the lock.

Member Data Documentation

int DtScopedNotifyLevelChange::myOrigNotifyLevel
private

The notify level prior to changing it.

MAKRti::DtMutex DtScopedNotifyLevelChange::theMutex
staticprivate

The mutex to prevent simultaneous notify level changes.


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

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)