libfoedus-core
FOEDUS Core Library
|
Definition at line 1157 of file xct_id.hpp.
#include <xct_id.hpp>
Public Member Functions | |
McsOwnerlessLockScope () | |
McsOwnerlessLockScope (McsWwLock *lock, bool acquire_now=true, bool non_racy_acquire=false) | |
~McsOwnerlessLockScope () | |
bool | is_valid () const |
bool | is_locked_by_me () const |
void | acquire (bool non_racy_acquire) |
Acquires the lock. More... | |
void | release () |
Release the lock if acquired. More... | |
foedus::xct::McsOwnerlessLockScope::McsOwnerlessLockScope | ( | ) |
Definition at line 90 of file xct_id.cpp.
foedus::xct::McsOwnerlessLockScope::McsOwnerlessLockScope | ( | McsWwLock * | lock, |
bool | acquire_now = true , |
||
bool | non_racy_acquire = false |
||
) |
Definition at line 91 of file xct_id.cpp.
References acquire().
foedus::xct::McsOwnerlessLockScope::~McsOwnerlessLockScope | ( | ) |
Definition at line 100 of file xct_id.cpp.
References release().
void foedus::xct::McsOwnerlessLockScope::acquire | ( | bool | non_racy_acquire | ) |
Acquires the lock.
Does nothing if already acquired or !is_valid().
Definition at line 106 of file xct_id.cpp.
References is_locked_by_me(), is_valid(), foedus::xct::McsWwLock::ownerless_acquire_lock(), and foedus::xct::McsWwLock::ownerless_initial_lock().
Referenced by McsOwnerlessLockScope().
|
inline |
Definition at line 1167 of file xct_id.hpp.
Referenced by acquire(), and release().
|
inline |
Definition at line 1166 of file xct_id.hpp.
Referenced by acquire(), and release().
void foedus::xct::McsOwnerlessLockScope::release | ( | ) |
Release the lock if acquired.
Does nothing if not or !is_valid().
Definition at line 119 of file xct_id.cpp.
References is_locked_by_me(), is_valid(), and foedus::xct::McsWwLock::ownerless_release_lock().
Referenced by ~McsOwnerlessLockScope().