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