20 TAU_PROFILE(
"void MutexDirect::acquire()",
" ", TAU_USER);
30 TAU_PROFILE(
"void MutexDirect::try_acquire()",
" ", TAU_USER);
31 return _impl.try_lock();
40 TAU_PROFILE(
"void MutexDirect::unlock()",
" ", TAU_USER);
56 TAU_PROFILE(
"void MutexDirect::acquire()",
" ", TAU_USER);
66 TAU_PROFILE(
"void MutexDirect::acquire(bool)",
" ", TAU_USER);
67 return _impl.try_lock();
79 TAU_PROFILE(
"void MutexDirect::release()",
" ", TAU_USER);
121 return std::string();
void unlock()
Alias for release() to match C++11 semantics.
std::string get_name() const
The mutex name is only defined when compiling in DEBUG_THREADS mode.
void set_name(const std::string &name)
The mutex name is only defined when compiling in DEBUG_THREADS mode.
void acquire() const
Grabs the mutex if it is available.
bool try_acquire() const
Returns immediately, with a true value indicating the mutex has been acquired, and false indicating i...
bool debug_is_locked() const
Returns true if the current thread has locked the Mutex, false otherwise.
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.
void release() const
Releases the mutex.
void lock()
Alias for acquire() to match C++11 semantics.
void clear_name()
The mutex name is only defined when compiling in DEBUG_THREADS mode.