libgrape-lite
A C++ library for parallel graph processing
Public Member Functions | Private Attributes | List of all members
grape::SpinLock Class Reference

A simple implementation of spinlock based on std::atomic. More...

#include <concurrent_queue.h>

Public Member Functions

void lock ()
 
void unlock ()
 

Private Attributes

std::atomic_flag locked = ATOMIC_FLAG_INIT
 

Detailed Description

A simple implementation of spinlock based on std::atomic.