![]() |
MAK RTIspy API Documentation for HLA 1516
|
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. | |
| ~DtScopedNotifyLevelChange () | |
| Destructor. Reverts the notify level to its original value. | |
| void | changeNotifyLevel (int newNotifyLevel) |
| Changes the temporary notify level to the new value. | |
| void | restoreNotifyLevel () |
| Restores the temporary notify level to the original value. | |
Private Attributes | |
| int | myOrigNotifyLevel |
| The notify level prior to changing it. | |
Static Private Attributes | |
| static MAKRti::DtMutex | theMutex |
| The mutex to prevent simultaneous notify level changes. | |
Changes the notify level and locks out other temporary notify level changes while the object is in scope.
| 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.
| void DtScopedNotifyLevelChange::changeNotifyLevel | ( | int | newNotifyLevel | ) |
Changes the temporary notify level to the new value.
Referenced by DtRtiExecFederateMgr::mergeFomModules(), DtFedExec::processCreateReady(), DtFedExec::processJoin(), DtFederateMgr::readFedFile(), DtFederateMgr::readFedFilePtr(), DtFederateMgr::testReadFedFile(), and DtRtiExecFederateMgr::testReadFomModules().
| void DtScopedNotifyLevelChange::restoreNotifyLevel | ( | ) |
Restores the temporary notify level to the original value.
Does not release the lock.
Referenced by DtRtiExecFederateMgr::mergeFomModules(), and DtFedExec::processCreateReady().
|
private |
The notify level prior to changing it.
|
staticprivate |
The mutex to prevent simultaneous notify level changes.