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

#include <reservation.h>

Inheritance diagram for Realm::Reservation:
Collaboration diagram for Realm::Reservation:

Public Types

typedef ::realm_id_t id_t
 

Public Member Functions

bool operator< (const Reservation &rhs) const
 
bool operator== (const Reservation &rhs) const
 
bool operator!= (const Reservation &rhs) const
 
bool exists (void) const
 
Event acquire (unsigned mode=0, bool exclusive=true, Event wait_on=Event::NO_EVENT) const
 
Event try_acquire (bool retry, unsigned mode=0, bool exclusive=true, Event wait_on=Event::NO_EVENT) const
 
void release (Event wait_on=Event::NO_EVENT) const
 
void destroy_reservation (Event wait_on=Event::NO_EVENT)
 

Static Public Member Functions

static Reservation create_reservation ()
 

Public Attributes

id_t id
 

Static Public Attributes

static const Reservation NO_RESERVATION
 

Member Typedef Documentation

◆ id_t

Member Function Documentation

◆ acquire()

Event Realm::Reservation::acquire ( unsigned  mode = 0,
bool  exclusive = true,
Event  wait_on = Event::NO_EVENT 
) const

◆ create_reservation()

static Reservation Realm::Reservation::create_reservation ( )
static

◆ destroy_reservation()

void Realm::Reservation::destroy_reservation ( Event  wait_on = Event::NO_EVENT)

◆ exists()

bool Realm::Reservation::exists ( void  ) const
inline

◆ operator!=()

bool Realm::Reservation::operator!= ( const Reservation rhs) const
inline

◆ operator<()

bool Realm::Reservation::operator< ( const Reservation rhs) const
inline

◆ operator==()

bool Realm::Reservation::operator== ( const Reservation rhs) const
inline

◆ release()

void Realm::Reservation::release ( Event  wait_on = Event::NO_EVENT) const

◆ try_acquire()

Event Realm::Reservation::try_acquire ( bool  retry,
unsigned  mode = 0,
bool  exclusive = true,
Event  wait_on = Event::NO_EVENT 
) const

Member Data Documentation

◆ id

id_t Realm::Reservation::id

◆ NO_RESERVATION

const Reservation Realm::Reservation::NO_RESERVATION
static

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