Quiet annoying mutex debug logging messages
authorDale P. Smith <dalepsmith@gmail.com>
Sat, 18 Jan 2020 19:41:57 +0000 (14:41 -0500)
committerClinton Ebadi <clinton@unknownlamer.org>
Fri, 8 May 2020 00:33:37 +0000 (20:33 -0400)
source/BotThreading.C

index af31195..2ff93e0 100644 (file)
 BotMutex::BotMutex (bool recursive)
 {
   pthread_t self = pthread_self ();
+#if 0
   std::cerr << "Mutex Init..."
            << " Mutex: " << &mutex
            << " Thread: " << &self
            << std::endl;
+#endif
   pthread_mutexattr_init (&attrs);
 
   if (recursive)
@@ -42,10 +44,12 @@ BotMutex::BotMutex (bool recursive)
 BotMutex::~BotMutex ()
 {
   pthread_t self = pthread_self ();
+#if 0
   std::cerr << "Mutex Destroy..."
            << " Mutex: " << &mutex
            << " Thread: " << &self
            << std::endl;
+#endif
   pthread_mutex_destroy (&mutex);
   pthread_mutexattr_destroy (&attrs);
 }