Index: ext/libicpf/src/dmutex.h =================================================================== diff -u -rd4269744a04d36c8a8146a84bc27118031fa42ac -r0ec0dc6be33bf80d16d27555d107509810a93462 --- ext/libicpf/src/dmutex.h (.../dmutex.h) (revision d4269744a04d36c8a8146a84bc27118031fa42ac) +++ ext/libicpf/src/dmutex.h (.../dmutex.h) (revision 0ec0dc6be33bf80d16d27555d107509810a93462) @@ -29,6 +29,8 @@ #include "dumpctx.h" #include "mutex.h" +#ifdef ENABLE_MUTEX_DEBUGGING + BEGIN_ICPF_NAMESPACE /** \brief Class provides the locking and unlocking capabilities for use with threads. @@ -39,6 +41,8 @@ * This class is very similar to the mutex class, with the difference that it allows logging * of the locking/unlocking allowing easier debugging of the mutexes. Interface is almost * out-of-the-box replaceable with standard mutex class. + * To use this class properly - the icpf::d_mutex::m_pContext static member has to be initialized + * to a pointer to a dumpctx class that will receive notifications. */ class LIBICPF_API d_mutex : public mutex { @@ -68,3 +72,5 @@ END_ICPF_NAMESPACE #endif + +#endif