BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Variables
a
c
d
e
g
h
l
n
o
t
w
Typedefs
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
w
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
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
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Typedefs
a
b
c
d
e
f
h
i
l
m
n
o
p
r
s
t
v
Enumerations
Enumerator
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
w
Related Functions
a
b
c
d
e
f
g
h
m
n
o
p
s
t
u
v
w
y
Files
File List
File Members
All
_
a
b
c
d
e
f
g
i
l
m
n
p
r
s
t
u
v
w
Functions
Variables
Typedefs
Macros
_
a
b
c
d
e
f
g
i
l
m
n
p
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
libraries
fc
include
fc
thread
spin_lock.hpp
Go to the documentation of this file.
1
#pragma once
2
3
namespace
fc
{
4
class
microseconds;
5
class
time_point;
6
20
class
spin_lock
{
21
public
:
22
spin_lock
();
23
bool
try_lock
();
24
bool
try_lock_for
(
const
microseconds
& rel_time );
25
bool
try_lock_until
(
const
time_point
& abs_time );
26
void
lock
();
27
void
unlock
();
28
29
private
:
30
enum
lock_store {locked,unlocked};
31
int
_lock;
32
};
33
34
}
// namespace fc
35
fc::spin_lock::try_lock_until
bool try_lock_until(const time_point &abs_time)
Definition:
spin_lock.cpp:26
fc::spin_lock
modified spin-lock that yields on failure, but becomes a 'spin lock' if there are no other tasks to y...
Definition:
spin_lock.hpp:20
fc
Definition:
api.hpp:15
fc::spin_lock::try_lock_for
bool try_lock_for(const microseconds &rel_time)
Definition:
spin_lock.cpp:22
fc::spin_lock::try_lock
bool try_lock()
Definition:
spin_lock.cpp:17
fc::spin_lock::unlock
void unlock()
Definition:
spin_lock.cpp:39
fc::spin_lock::spin_lock
spin_lock()
Definition:
spin_lock.cpp:9
fc::spin_lock::lock
void lock()
Definition:
spin_lock.cpp:34
fc::microseconds
Definition:
time.hpp:12
fc::time_point
Definition:
time.hpp:44
Generated on Fri Dec 15 2023 06:12:42 for BitShares-Core by
1.8.17