Raven Core
3.0.0
P2P Digital Currency
Main Page
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
z
+
Functions
b
c
d
f
g
h
i
m
o
p
q
s
v
Variables
Typedefs
Enumerations
Enumerator
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
f
i
k
l
m
o
p
r
s
t
v
+
Enumerations
b
c
d
e
f
m
n
o
r
s
t
u
v
w
+
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Properties
+
Related Functions
a
c
d
f
o
p
t
u
v
w
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Variables
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
v
w
z
+
Typedefs
b
c
h
i
k
m
n
r
s
t
u
v
w
+
Enumerations
a
b
c
d
e
f
g
h
i
j
m
n
o
q
r
s
t
w
+
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
r
s
t
u
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
reverselock.h
Go to the documentation of this file.
1
// Copyright (c) 2015-2016 The Bitcoin Core developers
2
// Copyright (c) 2017-2019 The Raven Core developers
3
// Distributed under the MIT software license, see the accompanying
4
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
5
6
#ifndef RAVEN_REVERSELOCK_H
7
#define RAVEN_REVERSELOCK_H
8
12
template
<
typename
Lock>
13
class
reverse_lock
14
{
15
public
:
16
17
explicit
reverse_lock
(Lock& _lock) :
lock
(_lock) {
18
_lock.unlock();
19
_lock.swap(
templock
);
20
}
21
22
~reverse_lock
() {
23
templock
.lock();
24
templock
.swap(
lock
);
25
}
26
27
private
:
28
reverse_lock
(
reverse_lock
const
&);
29
reverse_lock
&
operator=
(
reverse_lock
const
&);
30
31
Lock&
lock
;
32
Lock
templock
;
33
};
34
35
#endif // RAVEN_REVERSELOCK_H
reverse_lock::operator=
reverse_lock & operator=(reverse_lock const &)
reverse_lock::lock
Lock & lock
Definition:
reverselock.h:31
reverse_lock::templock
Lock templock
Definition:
reverselock.h:32
reverse_lock::reverse_lock
reverse_lock(Lock &_lock)
Definition:
reverselock.h:17
reverse_lock
An RAII-style reverse lock.
Definition:
reverselock.h:13
reverse_lock::~reverse_lock
~reverse_lock()
Definition:
reverselock.h:22
Generated on Mon Jul 29 2019 02:32:20 for Raven Core by
1.8.13