HCoop
/
clinton
/
bobotpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55a3d3e
)
Quiet annoying mutex debug logging messages
author
Dale P. Smith
<dalepsmith@gmail.com>
Sat, 18 Jan 2020 19:41:57 +0000
(14:41 -0500)
committer
Clinton Ebadi
<clinton@unknownlamer.org>
Fri, 8 May 2020 00:33:37 +0000
(20:33 -0400)
source/BotThreading.C
patch
|
blob
|
blame
|
history
diff --git
a/source/BotThreading.C
b/source/BotThreading.C
index
af31195
..
2ff93e0
100644
(file)
--- a/
source/BotThreading.C
+++ b/
source/BotThreading.C
@@
-26,10
+26,12
@@
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);
}