itom 1.3.0
|
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. | |
ItomSharedSemaphore * | getSemaphore () const |
returns the pointer to the guarded ItomSharedSemaphore. | |
ItomSharedSemaphoreLocker & | operator= (ItomSharedSemaphore *newSemaphoreInstance) |
assigns another ItomSharedSemaphore to this locker. | |
Private Member Functions | |
ItomSharedSemaphoreLocker (ItomSharedSemaphoreLocker &) | |
ItomSharedSemaphoreLocker & | operator= (const ItomSharedSemaphoreLocker &) |
Private Attributes | |
ItomSharedSemaphore * | m_semaphore |
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.
pointer to ItomSharedSemaphore