libcsdbg  1.28
C++ exception (and generic) stack trace debug library
bool csdbg::thread::is_current ( ) const
inlinevirtual

Check if this is the currently executing thread.

Returns
true if this is the active thread, false otherwise

Definition at line 185 of file thread.cpp.

References m_handle.

Referenced by csdbg::process::cleanup_thread(), csdbg::process::current_thread(), and csdbg::process::get_thread().

186 {
187  return pthread_equal(m_handle, pthread_self()) != 0;
188 }
pthread_t m_handle
Thread handle.
Definition: thread.hpp:35

+ Here is the caller graph for this function: