libcsdbg  1.28
C++ exception (and generic) stack trace debug library
tracer & csdbg::tracer::remove_plugin ( u32  i)
virtual

Unregister a plugin.

Parameters
[in]ithe plugin registration index
Returns
*this
Exceptions
csdbg::exception

Definition at line 944 of file tracer.cpp.

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

945 {
946  try {
947  util::lock();
948  m_plugins->remove(i);
949  util::unlock();
950  return *this;
951  }
952 
953  catch (...) {
954  util::unlock();
955  throw;
956  }
957 }
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: