20 TAU_PROFILE(
"void LightMutexDirect::acquire()",
" ", TAU_USER);
30 TAU_PROFILE(
"void LightMutexDirect::try_acquire()",
" ", TAU_USER);
31 return _impl.try_lock();
40 TAU_PROFILE(
"void LightMutexDirect::unlock()",
" ", TAU_USER);
57 TAU_PROFILE(
"void LightMutexDirect::acquire()",
" ", TAU_USER);
70 TAU_PROFILE(
"void LightMutexDirect::release()",
" ", TAU_USER);
112 return std::string();
bool try_lock()
Alias for try_acquire() to match C++11 semantics.
bool debug_is_locked() const
Returns true if the current thread has locked the LightMutex, false otherwise.
std::string get_name() const
The lightMutex name is only defined when compiling in DEBUG_THREADS mode.
void clear_name()
The lightMutex name is only defined when compiling in DEBUG_THREADS mode.
void acquire() const
Grabs the lightMutex if it is available.
void release() const
Releases the lightMutex.
void unlock()
Alias for release() to match C++11 semantics.
void set_name(const std::string &name)
The lightMutex name is only defined when compiling in DEBUG_THREADS mode.
bool has_name() const
The lightMutex name is only defined when compiling in DEBUG_THREADS mode.
void lock()
Alias for acquire() to match C++11 semantics.