Galois
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
galois::substrate::SimpleLock Class Reference

SimpleLock is a spinlock. More...

#include <SimpleLock.h>

Public Member Functions

constexpr SimpleLock ()
 
 SimpleLock (const SimpleLock &p)
 
SimpleLockoperator= (const SimpleLock &p)
 
void lock () const
 
void unlock () const
 
bool try_lock () const
 
bool is_locked () const
 

Detailed Description

SimpleLock is a spinlock.

Copying a lock is unsynchronized (relaxed ordering)

Constructor & Destructor Documentation

constexpr galois::substrate::SimpleLock::SimpleLock ( )
inline
galois::substrate::SimpleLock::SimpleLock ( const SimpleLock p)
inline

Member Function Documentation

bool galois::substrate::SimpleLock::is_locked ( ) const
inline
void galois::substrate::SimpleLock::lock ( ) const
inline
SimpleLock& galois::substrate::SimpleLock::operator= ( const SimpleLock p)
inline
bool galois::substrate::SimpleLock::try_lock ( ) const
inline
void galois::substrate::SimpleLock::unlock ( ) const
inline

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