![]() |
VR-Forces 4.10 Class Documentation
|
Scoped guard for use in component tick functions. More...
Public Member Functions | |
| ComponentCriticalSection (DtSimComponent &, DtParallelTickManager::AccessType) | |
| Construct and change mutex state. More... | |
| ComponentCriticalSection (ComponentCriticalSection &, DtParallelTickManager::AccessType) | |
| ComponentCriticalSection (DtSimComponent &) | |
| Constructor. More... | |
| ComponentCriticalSection (ComponentCriticalSection &) | |
| void | reset (DtParallelTickManager::AccessType access) |
| Change mutex state. More... | |
| void | unlock () |
| Set mutex state to UNLOCKED. More... | |
| void | lockShared () |
| Set mutex state to SHARED. More... | |
| void | lock () |
| Set mutex state to EXCLUSIVE. More... | |
Private Attributes | |
| bool | myThreadSafe |
| DtCriticalSection | myCriticalSection |
Scoped guard for use in component tick functions.
Using this class will guarantee that components which are not marked as thread safe will not change the global access even if they request it.
|
explicit |
Construct and change mutex state.
|
explicit |
|
explicit |
Constructor.
|
explicit |
| void DtSimComponent::ComponentCriticalSection::reset | ( | DtParallelTickManager::AccessType | access | ) |
Change mutex state.
| void DtSimComponent::ComponentCriticalSection::unlock | ( | ) |
Set mutex state to UNLOCKED.
| void DtSimComponent::ComponentCriticalSection::lockShared | ( | ) |
Set mutex state to SHARED.
| void DtSimComponent::ComponentCriticalSection::lock | ( | ) |
Set mutex state to EXCLUSIVE.
|
private |
|
private |