BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
libraries
fc
include
fc
thread
scoped_lock.hpp
Go to the documentation of this file.
1
#pragma once
2
3
namespace
fc
{
4
template
<
typename
T>
5
class
scoped_lock
{
6
public
:
7
scoped_lock
( T& l ):
_lock
(l) {
_lock
.lock(); }
8
~scoped_lock
() {
_lock
.unlock(); }
9
T&
_lock
;
10
};
11
}
fc::scoped_lock
Definition:
scoped_lock.hpp:5
fc
Definition:
api.hpp:15
fc::scoped_lock::scoped_lock
scoped_lock(T &l)
Definition:
scoped_lock.hpp:7
fc::scoped_lock::~scoped_lock
~scoped_lock()
Definition:
scoped_lock.hpp:8
fc::scoped_lock::_lock
T & _lock
Definition:
scoped_lock.hpp:9
Generated on Fri Dec 15 2023 06:12:42 for BitShares-Core by
1.8.17