#include "debug.h"
-/// ***** Private Method Headers *****
-/// ***** Private Variables *****
+#include <iostream>
+using std::cerr;
+using std::cout;
+using std::endl;
+
+#include "locks/Mutex.h"
+#include "locks/Autolock.h"
/// ***** Public Methods *****
+Mutex muDPF;
+
void DPF(int level, const char* pstr)
{
- cout << pstr << endl;
+ Autolock lock(muDPF);
+
+ cout << pstr << endl;
+}
+
+void debug::init()
+{
+ muDPF.init();
+}
+
+void debug::clean()
+{
+ muDPF.clean();
}
/// ***** Private Methods *****