Main Page
Namespace List
Class Hierarchy
Alphabetical List
Compound List
File List
Namespace Members
Compound Members
File Members
Source
igtlFastMutexLock.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Open IGT Link Library
4
Module: $HeadURL: http://svn.na-mic.org/NAMICSandBox/trunk/OpenIGTLink/Source/igtlFastMutexLock.h $
5
Language: C++
6
Date: $Date: 2008-12-22 19:05:42 -0500 (Mon, 22 Dec 2008) $
7
Version: $Revision: 3460 $
8
9
Copyright (c) Insight Software Consortium. All rights reserved.
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 notices for more information.
14
15
=========================================================================*/
16
/*=========================================================================
17
18
Program: Insight Segmentation & Registration Toolkit
19
Module: $RCSfile: itkFastMutexLock.h,v $
20
Language: C++
21
Date: $Date: 2008-12-22 19:05:42 -0500 (Mon, 22 Dec 2008) $
22
Version: $Revision: 3460 $
23
24
Copyright (c) Insight Software Consortium. All rights reserved.
25
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
26
27
Portions of this code are covered under the VTK copyright.
28
See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
29
30
This software is distributed WITHOUT ANY WARRANTY; without even
31
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
32
PURPOSE. See the above copyright notices for more information.
33
34
=========================================================================*/
35
#ifndef __igtlFastMutexLock_h
36
#define __igtlFastMutexLock_h
37
38
#include "
igtlObject.h
"
39
#include "
igtlSimpleFastMutexLock.h
"
40
#include "
igtlObjectFactory.h
"
41
42
namespace
igtl
43
{
44
66
class
IGTLCommon_EXPORT
FastMutexLock
:
public
Object
67
{
68
public
:
70
typedef
FastMutexLock
Self
;
71
typedef
Object
Superclass
;
72
typedef
SmartPointer<Self>
Pointer
;
73
typedef
SmartPointer<const Self>
ConstPointer
;
74
76
igtlNewMacro
(
Self
);
77
79
igtlTypeMacro
(
FastMutexLock
,
Object
);
80
82
void
Lock();
83
85
void
Unlock();
86
87
protected
:
88
FastMutexLock
() {}
89
~FastMutexLock
() {}
90
91
SimpleFastMutexLock
m_SimpleFastMutexLock
;
92
void
PrintSelf(std::ostream& os)
const
;
93
94
private
:
95
FastMutexLock
(
const
Self
&);
//purposely not implemented
96
void
operator=(
const
Self
&);
//purposely not implemented
97
};
98
99
100
inline
void
FastMutexLock::Lock
(
void
)
101
{
102
m_SimpleFastMutexLock
.
Lock
();
103
}
104
105
inline
void
FastMutexLock::Unlock
(
void
)
106
{
107
m_SimpleFastMutexLock
.
Unlock
();
108
}
109
110
111
}
//end igtl namespace
112
#endif
113
114
Generated at Thu Mar 20 2014 16:32:06 for OpenIGTLink by
1.8.1.2 written by
Dimitri van Heesch
, © 1997-2000