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
Mutex.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: Mutex.h
10
11
Description: Definition of class AVT::VmbAPI::Mutex.
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_MUTEX
29
#define AVT_VMBAPI_MUTEX
30
31
#include <
VimbaCPP/Include/VimbaCPPCommon.h
>
32
33
#ifdef _WIN32
34
#include <windows.h>
35
#else
36
#include <pthread.h>
37
#endif
38
39
namespace
AVT
{
40
namespace
VmbAPI {
41
42
class
Mutex
43
{
44
public
:
45
IMEXPORT
explicit
Mutex
(
bool
bInitLock =
false
);
46
IMEXPORT
~Mutex
();
47
48
IMEXPORT
void
Lock
();
49
IMEXPORT
void
Unlock
();
50
51
protected
:
52
#ifdef _WIN32
53
HANDLE m_hMutex;
54
#else
55
pthread_mutex_t
m_Mutex
;
56
#endif
57
58
private
:
59
Mutex&
operator=
(
const
Mutex& );
60
Mutex
(
const
Mutex& );
61
};
62
63
}}
//namespace AVT::VmbAPI
64
65
#endif //AVT_VMBAPI_MUTEX
AVT::VmbAPI::Mutex::operator=
Mutex & operator=(const Mutex &)
Definition:
Mutex.cpp:72
AVT::VmbAPI::Mutex::Unlock
IMEXPORT void Unlock()
Definition:
Mutex.cpp:87
AVT::VmbAPI::Mutex::Lock
IMEXPORT void Lock()
Definition:
Mutex.cpp:78
AVT::VmbAPI::Mutex::Mutex
IMEXPORT Mutex(bool bInitLock=false)
Definition:
Mutex.cpp:36
AVT::VmbAPI::Mutex
Definition:
Mutex.h:42
VimbaCPPCommon.h
AVT
Definition:
AncillaryData.h:35
AVT::VmbAPI::Mutex::~Mutex
IMEXPORT ~Mutex()
Definition:
Mutex.cpp:58
AVT::VmbAPI::Mutex::m_Mutex
pthread_mutex_t m_Mutex
Definition:
Mutex.h:55
avt_vimba_camera
Author(s): Allied Vision Technologies, Miquel Massot
autogenerated on Fri Jun 2 2023 02:21:10