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

#include <prealm.h>

Inheritance diagram for PRealm::Reservation:
[legend]
Collaboration diagram for PRealm::Reservation:
[legend]

Public Member Functions

 Reservation (void)
 Reservation (Realm::Reservation r)
 Reservation (const Reservation &r)=default
 Reservation (Reservation &&r)=default
Reservation & operator= (Realm::Reservation r)
Reservation & operator= (const Reservation &r)=default
Reservation & operator= (Reservation &&r)=default
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
Public Member Functions inherited from Realm::Reservation
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 Attributes

static const Reservation NO_RESERVATION
Static Public Attributes inherited from Realm::Reservation
static const Reservation NO_RESERVATION

Additional Inherited Members

Public Types inherited from Realm::Reservation
typedef ::realm_id_t id_t
Static Public Member Functions inherited from Realm::Reservation
static Reservation create_reservation ()
Public Attributes inherited from Realm::Reservation
id_t id

Constructor & Destructor Documentation

◆ Reservation() [1/4]

PRealm::Reservation::Reservation ( void )
inline

◆ Reservation() [2/4]

PRealm::Reservation::Reservation ( Realm::Reservation r)
inline

◆ Reservation() [3/4]

PRealm::Reservation::Reservation ( const Reservation & r)
default

◆ Reservation() [4/4]

PRealm::Reservation::Reservation ( Reservation && r)
default

Member Function Documentation

◆ acquire()

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

◆ operator=() [1/3]

Reservation & PRealm::Reservation::operator= ( const Reservation & r)
default

◆ operator=() [2/3]

Reservation & PRealm::Reservation::operator= ( Realm::Reservation r)
inline

◆ operator=() [3/3]

Reservation & PRealm::Reservation::operator= ( Reservation && r)
default

◆ try_acquire()

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

Member Data Documentation

◆ NO_RESERVATION

const Reservation PRealm::Reservation::NO_RESERVATION
static

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