20 TAU_PROFILE(
"void LightReMutexDirect::acquire()",
" ", TAU_USER);
30 TAU_PROFILE(
"void LightReMutexDirect::try_acquire()",
" ", TAU_USER);
40 TAU_PROFILE(
"void LightReMutexDirect::unlock()",
" ", TAU_USER);
57 TAU_PROFILE(
"void LightReMutexDirect::acquire()",
" ", TAU_USER);
58 #ifdef HAVE_REMUTEXTRUEIMPL 61 _impl.do_lock(Thread::get_current_thread());
71 TAU_PROFILE(
"void LightReMutexDirect::acquire(Thread *)",
" ", TAU_USER);
72 #ifdef HAVE_REMUTEXTRUEIMPL 75 _impl.do_lock(current_thread);
76 #endif // HAVE_REMUTEXIMPL 91 TAU_PROFILE(
"void LightReMutexDirect::elevate_lock()",
" ", TAU_USER);
92 #ifdef HAVE_REMUTEXTRUEIMPL 95 _impl.do_elevate_lock();
96 #endif // HAVE_REMUTEXIMPL 108 TAU_PROFILE(
"void LightReMutexDirect::release()",
" ", TAU_USER);
109 #ifdef HAVE_REMUTEXTRUEIMPL 112 _impl.do_unlock(Thread::get_current_thread());
154 return std::string();
bool try_lock()
Alias for try_acquire() to match C++11 semantics.
bool has_name() const
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.
void unlock()
Alias for release() to match C++11 semantics.
void lock()
Alias for acquire() to match C++11 semantics.
void release() const
Releases the lightReMutex.
void lock()
Alias for acquire() to match C++11 semantics.
void elevate_lock() const
This method increments the lock count, assuming the calling thread already holds the lock.
std::string get_name() const
The mutex name is only defined when compiling in DEBUG_THREADS mode.
void unlock()
Alias for release() to match C++11 semantics.
A thread; that is, a lightweight process.
void acquire() const
Grabs the lightReMutex if it is available.
bool try_lock()
Alias for try_acquire() to match C++11 semantics.
void set_name(const std::string &name)
The mutex name is only defined when compiling in DEBUG_THREADS mode.
void clear_name()
The mutex name is only defined when compiling in DEBUG_THREADS mode.