Classes Files

Wombat::MamdaLock

Public Types

  Name
enum Scheme { SHARED, EXCLUSIVE}
enum Type { READ, WRITE}

Public Functions

  Name
  MamdaLock(Scheme scheme, const char * context, int threads =0)
  ~MamdaLock()
bool acquire(Type type)
bool release(Type type)
const char * type(Type type)
const char * scheme(Scheme scheme)
bool lockingEnabled()

Public Types Documentation

enum Scheme

Enumerator Value Description
SHARED    
EXCLUSIVE    

enum Type

Enumerator Value Description
READ    
WRITE    

Public Functions Documentation

function MamdaLock

MamdaLock(
    Scheme scheme,
    const char * context,
    int threads =0
)

function ~MamdaLock

~MamdaLock()

function acquire

bool acquire(
    Type type
)

function release

bool release(
    Type type
)

function type

static const char * type(
    Type type
)

function scheme

static const char * scheme(
    Scheme scheme
)

function lockingEnabled

static inline bool lockingEnabled()

Updated on 2023-03-31 at 15:29:57 +0100