BitShares-Core  6.1.0
BitShares blockchain implementation and command-line interface software
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 }
Definition: api.hpp:15