Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
i
k
l
o
p
r
s
t
u
Functions
Variables
Typedefs
Enumerations
Enumerator
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Functions
a
b
c
d
e
f
g
h
i
l
m
o
p
q
r
s
t
u
v
w
~
+
Variables
_
a
b
c
d
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Typedefs
Enumerations
Enumerator
Related Functions
+
Files
File List
+
File Members
+
All
d
g
i
l
m
s
v
+
Functions
m
v
Variables
+
Typedefs
v
Enumerations
+
Enumerator
v
Macros
include
VimbaCPP
Include
BasicLockable.h
Go to the documentation of this file.
1
/*=============================================================================
2
Copyright (C) 2012 Allied Vision Technologies. All Rights Reserved.
3
4
Redistribution of this file, in original or modified form, without
5
prior written consent of Allied Vision Technologies is prohibited.
6
7
-------------------------------------------------------------------------------
8
9
File: BasicLockable.h
10
11
Description: Definition of class AVT::VmbAPI::BasicLockable.
12
13
-------------------------------------------------------------------------------
14
15
THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
16
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF TITLE,
17
NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
19
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
22
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
23
TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
26
=============================================================================*/
27
28
#ifndef AVT_VMBAPI_BASICLOCKABLE
29
#define AVT_VMBAPI_BASICLOCKABLE
30
31
#include <
VimbaCPP/Include/VimbaCPPCommon.h
>
32
#include <
VimbaCPP/Include/SharedPointerDefines.h
>
33
#include <
VimbaCPP/Include/Mutex.h
>
34
35
namespace
AVT
{
36
namespace
VmbAPI {
37
38
class
BasicLockable
39
{
40
public
:
41
IMEXPORT
BasicLockable
();
42
IMEXPORT
BasicLockable
( MutexPtr pMutex );
43
44
IMEXPORT
virtual
~BasicLockable
();
45
46
MutexPtr&
GetMutex
();
47
const
MutexPtr&
GetMutex
()
const
;
48
49
void
Lock
()
50
{
51
SP_ACCESS
(
m_pMutex
)->Lock();
52
}
53
void
Unlock
()
54
{
55
SP_ACCESS
(
m_pMutex
)->Unlock();
56
}
57
private
:
58
MutexPtr
m_pMutex
;
59
};
60
61
}}
//namespace AVT::VmbAPI
62
63
#endif
AVT::VmbAPI::BasicLockable
Definition:
BasicLockable.h:38
SP_ACCESS
#define SP_ACCESS(sp)
Definition:
SharedPointerDefines.h:49
AVT::VmbAPI::BasicLockable::Unlock
void Unlock()
Definition:
BasicLockable.h:53
AVT::VmbAPI::BasicLockable::~BasicLockable
virtual IMEXPORT ~BasicLockable()
Definition:
BasicLockable.cpp:39
AVT::VmbAPI::BasicLockable::BasicLockable
IMEXPORT BasicLockable()
Definition:
BasicLockable.cpp:34
AVT::VmbAPI::BasicLockable::GetMutex
MutexPtr & GetMutex()
Definition:
BasicLockable.cpp:48
VimbaCPPCommon.h
AVT::VmbAPI::BasicLockable::Lock
void Lock()
Definition:
BasicLockable.h:49
Mutex.h
SharedPointerDefines.h
AVT
Definition:
AncillaryData.h:35
AVT::VmbAPI::BasicLockable::m_pMutex
MutexPtr m_pMutex
Definition:
BasicLockable.h:58
avt_vimba_camera
Author(s): Allied Vision Technologies, Miquel Massot
autogenerated on Fri Jun 2 2023 02:21:10