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: The OpenIGTLink Library
4
Language: C++
5
Web page: http://openigtlink.org/
6
7
Copyright (c) Insight Software Consortium. All rights reserved.
8
9
This software is distributed WITHOUT ANY WARRANTY; without even
10
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11
PURPOSE. See the above copyright notices for more information.
12
13
=========================================================================*/
14
/*=========================================================================
15
16
Program: Insight Segmentation & Registration Toolkit
17
Module: $RCSfile: itkFastMutexLock.h,v $
18
Language: C++
19
Date: $Date: 2008-12-22 19:05:42 -0500 (Mon, 22 Dec 2008) $
20
Version: $Revision: 3460 $
21
22
Copyright (c) Insight Software Consortium. All rights reserved.
23
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
24
25
Portions of this code are covered under the VTK copyright.
26
See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
27
28
This software is distributed WITHOUT ANY WARRANTY; without even
29
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
30
PURPOSE. See the above copyright notices for more information.
31
32
=========================================================================*/
33
#ifndef __igtlFastMutexLock_h
34
#define __igtlFastMutexLock_h
35
36
#include "
igtlObject.h
"
37
#include "
igtlSimpleFastMutexLock.h
"
38
#include "
igtlObjectFactory.h
"
39
40
namespace
igtl
41
{
42
64
class
IGTLCommon_EXPORT
FastMutexLock
:
public
Object
65
{
66
public
:
68
typedef
FastMutexLock
Self
;
69
typedef
Object
Superclass
;
70
typedef
SmartPointer<Self>
Pointer
;
71
typedef
SmartPointer<const Self>
ConstPointer
;
72
74
igtlNewMacro
(
Self
);
75
77
igtlTypeMacro
(
FastMutexLock
,
Object
);
78
80
void
Lock();
81
83
void
Unlock();
84
85
protected
:
86
FastMutexLock
() {}
87
~FastMutexLock
() {}
88
89
SimpleFastMutexLock
m_SimpleFastMutexLock
;
90
void
PrintSelf(std::ostream& os)
const
;
91
92
private
:
93
FastMutexLock
(
const
Self
&);
//purposely not implemented
94
void
operator=(
const
Self
&);
//purposely not implemented
95
};
96
97
98
inline
void
FastMutexLock::Lock
(
void
)
99
{
100
m_SimpleFastMutexLock
.
Lock
();
101
}
102
103
inline
void
FastMutexLock::Unlock
(
void
)
104
{
105
m_SimpleFastMutexLock
.
Unlock
();
106
}
107
108
109
}
//end igtl namespace
110
#endif
111
igtlNewMacro
#define igtlNewMacro(x)
Definition:
igtlMacro.h:431
igtl::FastMutexLock::Superclass
Object Superclass
Definition:
igtlFastMutexLock.h:69
igtl::SimpleFastMutexLock::Lock
void Lock() const
igtl::FastMutexLock::FastMutexLock
FastMutexLock()
Definition:
igtlFastMutexLock.h:86
igtl::Object
Base class for most igtl classes.
Definition:
igtlObject.h:60
igtl
The "igtl" namespace contains all OpenIGTLink classes. There are several nested namespaces within the...
Definition:
igtlBindMessage.h:25
IGTLCommon_EXPORT
#define IGTLCommon_EXPORT
Definition:
igtlWin32Header.h:151
igtl::FastMutexLock::Lock
void Lock()
Definition:
igtlFastMutexLock.h:98
igtl::FastMutexLock::~FastMutexLock
~FastMutexLock()
Definition:
igtlFastMutexLock.h:87
igtl::FastMutexLock::m_SimpleFastMutexLock
SimpleFastMutexLock m_SimpleFastMutexLock
Definition:
igtlFastMutexLock.h:89
igtl::FastMutexLock::Pointer
SmartPointer< Self > Pointer
Definition:
igtlFastMutexLock.h:70
igtl::FastMutexLock
Critical section locking class.
Definition:
igtlFastMutexLock.h:64
igtl::SimpleFastMutexLock
Critical section locking class that can be allocated on the stack.
Definition:
igtlSimpleFastMutexLock.h:87
igtlSimpleFastMutexLock.h
igtl::FastMutexLock::Self
FastMutexLock Self
Definition:
igtlFastMutexLock.h:68
igtl::SmartPointer< Self >
igtlTypeMacro
#define igtlTypeMacro(thisClass, superclass)
Definition:
igtlMacro.h:486
igtl::FastMutexLock::Unlock
void Unlock()
Definition:
igtlFastMutexLock.h:103
igtlObject.h
igtl::SimpleFastMutexLock::Unlock
void Unlock() const
igtl::FastMutexLock::ConstPointer
SmartPointer< const Self > ConstPointer
Definition:
igtlFastMutexLock.h:71
igtlObjectFactory.h
Generated for OpenIGTLink by
Doxygen
1.8.17 written by
Dimitri van Heesch
, © 1997-2012