Get a thread by name.
- Parameters
-
- Returns
- the csdbg::thread object that tracks the actual thread (with the given name) or NULL if no such thread is found
Definition at line 402 of file process.cpp.
References __D_ASSERT, likely, csdbg::util::lock(), m_threads, csdbg::thread::name(), unlikely, and csdbg::util::unlock().
412 if (
unlikely(strcmp(thr->name(), nm) == 0) ) {
chain< thread > * m_threads
Instrumented thread list.
#define likely(expr)
Offer a hint (positive) to the pipeline branch predictor.
static void lock()
Lock the global access mutex.
static void unlock()
Unlock the global access mutex.
unsigned int u32
32-bit unsigned integer
#define unlikely(expr)
Offer a hint (negative) to the pipeline branch predictor.
#define __D_ASSERT(x)
Assertion macro.