souffle  2.0.2-371-g6315b36
Public Member Functions
souffle::SpinLock Class Reference

A 'sequential' non-locking implementation for a spin lock. More...

#include <ParallelUtil.h>

Collaboration diagram for souffle::SpinLock:
Collaboration graph

Public Member Functions

void lock ()
 
 SpinLock ()=default
 
bool try_lock ()
 
void unlock ()
 

Detailed Description

A 'sequential' non-locking implementation for a spin lock.

Definition at line 487 of file ParallelUtil.h.

Constructor & Destructor Documentation

◆ SpinLock()

souffle::SpinLock::SpinLock ( )
default

Member Function Documentation

◆ lock()

void souffle::SpinLock::lock ( )
inline

◆ try_lock()

bool souffle::SpinLock::try_lock ( )
inline

Definition at line 493 of file ParallelUtil.h.

493  {
494  return true;
495  }

◆ unlock()

void souffle::SpinLock::unlock ( )
inline

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