Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
dev::SpinLock Class Reference

Simple lock that waits for release without making context switch. More...

#include <Guards.h>

Public Member Functions

 SpinLock ()
 
void lock ()
 
void unlock ()
 

Private Attributes

std::atomic_flag m_lock
 

Detailed Description

Simple lock that waits for release without making context switch.

Definition at line 73 of file Guards.h.

Constructor & Destructor Documentation

dev::SpinLock::SpinLock ( )
inline

Definition at line 76 of file Guards.h.

Member Function Documentation

void dev::SpinLock::lock ( )
inline

Definition at line 77 of file Guards.h.

void dev::SpinLock::unlock ( )
inline

Definition at line 78 of file Guards.h.

Member Data Documentation

std::atomic_flag dev::SpinLock::m_lock
private

Definition at line 80 of file Guards.h.


The documentation for this class was generated from the following file: