ADTF  v2.14.3
cSynchronizer Class Reference

Synchronizer class. More...

Public Member Functions

 cSynchronizer (cCriticalSection *poCriticalSection)
 Constructor that will enter the critical section. More...
 
 ~cSynchronizer ()
 Destructor that will leave the critical section. More...
 

Protected Attributes

cCriticalSectionm_poCriticalSection
 Pointer to critical section object used for synchronization.
 

Detailed Description

Synchronizer class.

Auto Pointer style. This class can be used in realtime contexts. It will of course block on the mutex, but will not perform any memory allocation.

Definition at line 360 of file thread.h.

Constructor & Destructor Documentation

cSynchronizer ( cCriticalSection poCriticalSection)
inline

Constructor that will enter the critical section.

Parameters
poCriticalSection[in] The critical section to use.
This method is real-time safe.
See The ADTF Real-Time Extension.

Definition at line 372 of file thread.h.

References cCriticalSection::Enter().

~cSynchronizer ( )
inline

Destructor that will leave the critical section.

This method is real-time safe.
See The ADTF Real-Time Extension.

Definition at line 382 of file thread.h.

References cCriticalSection::Leave().


Copyright © Audi Electronics Venture GmbH. All rights reserved. (Generated on Fri Mar 22 2019 by doxygen 1.8.10)