libcsdbg  1.28
C++ exception (and generic) stack trace debug library
const plugin * csdbg::tracer::get_plugin ( u32  i) const
virtual

Get a registered plugin.

Parameters
[in]ithe plugin registration index
Returns
this->m_plugins->at(i)
Exceptions
csdbg::exception

Definition at line 1001 of file tracer.cpp.

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

1002 {
1003  try {
1004  util::lock();
1005  const plugin *retval = m_plugins->at(i);
1006  util::unlock();
1007  return retval;
1008  }
1009 
1010  catch (...) {
1011  util::unlock();
1012  throw;
1013  }
1014 }
chain< plugin > * m_plugins
Instrumentation plugins.
Definition: tracer.hpp:48
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: