Dataflow Runtime API  3.0.3.0
Public Member Functions | List of all members
imt::base::os::winec7::Guard Class Reference

Guards a critical section. More...

#include <Imt.Base.OS.WinEC7/Guard.h>

Public Member Functions

 Guard (Mutex &mutex)
 Constructor. More...
 
virtual ~Guard (void)
 Destructor. More...
 

Detailed Description

Guards a critical section.

Immutable class.

Multiple threads may share one mutex object, but only one single thread may guard the mutex and therefore be inside a critical section at any time.

Constructor & Destructor Documentation

◆ Guard()

imt::base::os::winec7::Guard::Guard ( Mutex mutex)
explicit

Constructor.

Constructs a new guard and acquires the mutex.

◆ ~Guard()

virtual imt::base::os::winec7::Guard::~Guard ( void  )
virtual

Destructor.

Releases the mutex.


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