ALBA
albaMutexLock.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaMutexLock
5 Authors: Based on itkalbaMutexLock (www.itk.org), adapted by Marco Petrone
6
7 Copyright (c) BIC
8 All rights reserved. See Copyright.txt or
9
10
11 This software is distributed WITHOUT ANY WARRANTY; without even
12 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 PURPOSE. See the above copyright notice for more information.
14
15=========================================================================*/
16#ifndef __albaMutexLock_h
17#define __albaMutexLock_h
18
19#include "albaBase.h"
20
21class mmuPIMPLMutexLock;
22
32class ALBA_EXPORT albaMutexLock : public albaBase
33{
34public:
38
40 void Lock( void ) const;
41
43 void Unlock( void ) const;
44protected:
45 mmuPIMPLMutexLock *m_PIMPLMutexLock;
46};
47
48#endif
49
50
albaBase - the pourpose of this class is just to groups utilities classes
Definition: albaBase.h:27
Critical section locking class that can be allocated on the stack.
Definition: albaMutexLock.h:33
void Lock(void) const
Lock access.
albaMutexLock()
Constructor and destructor left public purposely because of stack allocation.
void Unlock(void) const
Unlock access.
mmuPIMPLMutexLock * m_PIMPLMutexLock
Definition: albaMutexLock.h:45