From 23c5e7d57e1e9216f4da3446656df2dc7202975d Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 6 Apr 2013 13:14:45 +0200 Subject: tagging ychat-0.1 --- cont.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) mode change 100755 => 100644 cont.cpp (limited to 'cont.cpp') diff --git a/cont.cpp b/cont.cpp old mode 100755 new mode 100644 index a437543..e650d34 --- a/cont.cpp +++ b/cont.cpp @@ -4,13 +4,18 @@ #define CONT_CXX #include "cont.h" -#include "s_mutx.h" +#include "MUTX.h" using namespace std; string cont::get_val( string s_key ) { +#ifdef VERBOSE_ + pthread_mutex_lock ( &MUTX::get().mut_stdout ); + cout << "cont::get_val( \"" << s_key << "\" )" << endl; + pthread_mutex_unlock( &MUTX::get().mut_stdout ); +#endif if ( map_vals.find( s_key ) != map_vals.end() ) return map_vals[ s_key ]; return string(); @@ -18,6 +23,12 @@ cont::get_val( string s_key ) cont::~cont() { +#ifdef VERBOSE_ + pthread_mutex_lock ( &MUTX::get().mut_stdout ); + cout << "cont::cont()" << endl; + pthread_mutex_unlock( &MUTX::get().mut_stdout ); +#endif + map_vals.~map_string(); } -- cgit v1.2.3