itom  4.1.0
ItomSharedSemaphoreLocker Class Reference

Locker-class for ItomSharedSemaphore. The functionality is equal to QMutexLocker in Qt. ItomSharedSemaphoreLocker is a guard for any ItomSharedSemaphore-pointer. If the variable of type ItomSharedSemaphoreLocker is deleted, e.g. if its containing method runs out of scope, the destructor calls ItomSharedSemaphore::deleteSemaphore(...). This is also the case if you assign another pointer to ItomSharedSemaphore to this locker-instance. More...

#include <sharedStructuresQt.h>

Public Member Functions

 ItomSharedSemaphoreLocker (ItomSharedSemaphore *semaphore)
 constructor with ItomSharedSemaphore-pointer as parameter. This semaphore will be guarded by this locker.
 
 ItomSharedSemaphoreLocker ()
 empty constructor. The locker will not guard any semaphore yet.
 
 ~ItomSharedSemaphoreLocker ()
 destructor.
 
ItomSharedSemaphoregetSemaphore () const
 returns the pointer to the guarded ItomSharedSemaphore.
 
ItomSharedSemaphoreoperator-> () const
 returns the pointer to the guarded ItomSharedSemaphore.
 
ItomSharedSemaphoreLockeroperator= (ItomSharedSemaphore *newSemaphoreInstance)
 assigns another ItomSharedSemaphore to this locker.
 

Private Member Functions

 ItomSharedSemaphoreLocker (ItomSharedSemaphoreLocker &)
 
ItomSharedSemaphoreLockeroperator= (const ItomSharedSemaphoreLocker &)
 

Private Attributes

ItomSharedSemaphorem_semaphore
 

Detailed Description

Locker-class for ItomSharedSemaphore. The functionality is equal to QMutexLocker in Qt. ItomSharedSemaphoreLocker is a guard for any ItomSharedSemaphore-pointer. If the variable of type ItomSharedSemaphoreLocker is deleted, e.g. if its containing method runs out of scope, the destructor calls ItomSharedSemaphore::deleteSemaphore(...). This is also the case if you assign another pointer to ItomSharedSemaphore to this locker-instance.

Member Data Documentation

ItomSharedSemaphore* ItomSharedSemaphoreLocker::m_semaphore
private

pointer to ItomSharedSemaphore


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