itom 1.3.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>

List of all members.

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.
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


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends