21 INLINE LightReMutexDirect::
23 #ifndef HAVE_REMUTEXIMPL
24 : _cvar_impl(_lock_impl)
27 #ifndef HAVE_REMUTEXIMPL
28 _locking_thread = NULL;
38 INLINE LightReMutexDirect::
39 ~LightReMutexDirect() {
47 INLINE LightReMutexDirect::
49 #ifndef HAVE_REMUTEXIMPL
50 : _cvar_impl(_lock_impl)
61 INLINE
void LightReMutexDirect::
83 TAU_PROFILE(
"void LightReMutexDirect::acquire()",
" ", TAU_USER);
96 TAU_PROFILE(
"void LightReMutexDirect::acquire(Thread *)",
" ", TAU_USER);
97 #ifdef HAVE_REMUTEXIMPL
101 #endif // HAVE_REMUTEXIMPL
121 TAU_PROFILE(
"void LightReMutexDirect::elevate_lock()",
" ", TAU_USER);
122 #ifdef HAVE_REMUTEXIMPL
126 #endif // HAVE_REMUTEXIMPL
141 TAU_PROFILE(
"void LightReMutexDirect::release()",
" ", TAU_USER);
void set_name(const string &name)
The mutex name is only defined when compiling in DEBUG_THREADS mode.
bool debug_is_locked() const
Returns true if the current thread has locked the LightReMutex, false otherwise.
bool has_name() const
The mutex name is only defined when compiling in DEBUG_THREADS mode.
void release() const
Releases the lightReMutex.
This class implements a standard lightReMutex by making direct calls to the underlying implementation...
void acquire() const
Grabs the lightReMutex if it is available.
string get_name() const
The mutex name is only defined when compiling in DEBUG_THREADS mode.
A thread; that is, a lightweight process.
void elevate_lock() const
This method increments the lock count, assuming the calling thread already holds the lock...
void clear_name()
The mutex name is only defined when compiling in DEBUG_THREADS mode.