Realm
A distributed, event-based tasking library
Loading...
Searching...
No Matches
Realm::MutexChecker Class Reference

#include <mutex.h>

Inheritance diagram for Realm::MutexChecker:
[legend]
Collaboration diagram for Realm::MutexChecker:
[legend]

Classes

class  CheckedScope

Public Member Functions

 MutexChecker (const char *_name, void *_object=0, int _limit=1)
 ~MutexChecker ()
void lock (CheckedScope *cs=0)
bool trylock (CheckedScope *cs=0)
void unlock (CheckedScope *cs=0)

Protected Member Functions

void lock_fail (int actval, CheckedScope *cs)
void unlock_fail (int actval, CheckedScope *cs)
Protected Member Functions inherited from Realm::noncopyable
 noncopyable ()
 ~noncopyable ()

Protected Attributes

const char * name
void * object
int limit
atomic< int > cur_count

Constructor & Destructor Documentation

◆ MutexChecker()

Realm::MutexChecker::MutexChecker ( const char * _name,
void * _object = 0,
int _limit = 1 )

◆ ~MutexChecker()

Realm::MutexChecker::~MutexChecker ( )

Member Function Documentation

◆ lock()

void Realm::MutexChecker::lock ( CheckedScope * cs = 0)

◆ lock_fail()

void Realm::MutexChecker::lock_fail ( int actval,
CheckedScope * cs )
protected

◆ trylock()

bool Realm::MutexChecker::trylock ( CheckedScope * cs = 0)

◆ unlock()

void Realm::MutexChecker::unlock ( CheckedScope * cs = 0)

◆ unlock_fail()

void Realm::MutexChecker::unlock_fail ( int actval,
CheckedScope * cs )
protected

Member Data Documentation

◆ cur_count

atomic<int> Realm::MutexChecker::cur_count
protected

◆ limit

int Realm::MutexChecker::limit
protected

◆ name

const char* Realm::MutexChecker::name
protected

◆ object

void* Realm::MutexChecker::object
protected

The documentation for this class was generated from the following file:
  • /home/runner/work/realm/realm/realm-src/src/realm/mutex.h