FireSTARR
Loading...
Searching...
No Matches
fs::sim::CriticalSection Class Reference

Indicates a section of code that is limited to a certain number of threads running at once. More...

#include <Model.h>

Collaboration diagram for fs::sim::CriticalSection:

Public Member Functions

 CriticalSection (Semaphore &ss)
 Constructor.
 
 CriticalSection (const CriticalSection &rhs)=delete
 
 CriticalSection (CriticalSection &&rhs)=delete
 
CriticalSectionoperator= (const CriticalSection &rhs)=delete
 
CriticalSectionoperator= (CriticalSection &&rhs)=delete
 

Private Attributes

Semaphores_
 Semaphore that this keeps track of access for.
 

Detailed Description

Indicates a section of code that is limited to a certain number of threads running at once.

Constructor & Destructor Documentation

◆ CriticalSection()

fs::sim::CriticalSection::CriticalSection ( Semaphore & ss)
inlineexplicit

Constructor.

Parameters
ssSemaphore to wait on
Here is the call graph for this function:

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