BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Classes | Namespaces | Macros
unique_lock.hpp File Reference
#include <assert.h>

Go to the source code of this file.

Classes

struct  fc::try_to_lock_t
 
class  fc::unique_lock< T >
 

Namespaces

 fc
 

Macros

#define synchronized(X)   fc::unique_lock<decltype((X))> __lock(((X)));
 

Macro Definition Documentation

◆ synchronized

#define synchronized (   X)    fc::unique_lock<decltype((X))> __lock(((X)));

Emulate java with the one quirk that the open bracket must come before the synchronized 'keyword'.

{ synchronized( lock_type )

}

Definition at line 41 of file unique_lock.hpp.