libcsdbg  1.28
C++ exception (and generic) stack trace debug library
thread * csdbg::process::get_thread ( u32  i) const
virtual

Get a thread by its offset in the active thread enumerator.

Parameters
[in]ithe offset
Returns
this->m_threads->at(i)
Exceptions
csdbg::exception

Definition at line 432 of file process.cpp.

References csdbg::util::lock(), m_threads, and csdbg::util::unlock().

433 {
434  try {
435  util::lock();
436  thread *retval = m_threads->at(i);
437  util::unlock();
438  return retval;
439  }
440 
441  catch (...) {
442  util::unlock();
443  throw;
444  }
445 }
chain< thread > * m_threads
Instrumented thread list.
Definition: process.hpp:37
static void lock()
Lock the global access mutex.
Definition: util.cpp:397
static void unlock()
Unlock the global access mutex.
Definition: util.cpp:406

+ Here is the call graph for this function: