souffle  2.0.2-371-g6315b36
Data Structures | Public Member Functions
souffle::Lock Struct Reference

A small utility class for implementing simple locks. More...

#include <ParallelUtil.h>

Collaboration diagram for souffle::Lock:
Collaboration graph

Data Structures

class  Lease
 

Public Member Functions

Lease acquire ()
 
void lock ()
 
bool try_lock ()
 
void unlock ()
 

Detailed Description

A small utility class for implementing simple locks.

Definition at line 467 of file ParallelUtil.h.

Member Function Documentation

◆ acquire()

Lease souffle::Lock::acquire ( )
inline

Definition at line 471 of file ParallelUtil.h.

471  {
472  return Lease();
473  }

Referenced by souffle::SymbolTable::operator=(), souffle::SymbolTable::size(), and souffle::SymbolTable::unsafeLookup().

◆ lock()

void souffle::Lock::lock ( )
inline

Definition at line 475 of file ParallelUtil.h.

475 {}

Referenced by souffle::t_info< Arity_ >::begin().

◆ try_lock()

bool souffle::Lock::try_lock ( )
inline

Definition at line 477 of file ParallelUtil.h.

477  {
478  return true;
479  }

◆ unlock()

void souffle::Lock::unlock ( )
inline

Definition at line 481 of file ParallelUtil.h.

481 {}

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