summaryrefslogtreecommitdiff
path: root/base.cpp
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:45 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:45 +0200
commited634bc556af8997b9d2d5bf7334073731936365 (patch)
treeaac5e9767c12f7bf7e98672c125554888fbbe1ac /base.cpp
parent5f4e214740242513c837c8a005ca23779bab1d0c (diff)
tagging ychat-0.2ychat-0.2
Diffstat (limited to 'base.cpp')
-rwxr-xr-x[-rw-r--r--]base.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/base.cpp b/base.cpp
index 553d090..9a67340 100644..100755
--- a/base.cpp
+++ b/base.cpp
@@ -4,39 +4,20 @@
#define BASE_CPP
#include "base.h"
-#include "MUTX.h"
base::base()
{
-#ifdef VERBOSE
- pthread_mutex_lock ( &MUTX::get().mut_stdout );
- cout << "base::base()" << endl;
- pthread_mutex_unlock( &MUTX::get().mut_stdout );
-#endif
-
pthread_mutex_init (&mut_vec_elem, NULL );
}
base::~base( )
{
-#ifdef VERBOSE
- pthread_mutex_lock ( &MUTX::get().mut_stdout );
- cout << "base::~base( )" << endl;
- pthread_mutex_unlock( &MUTX::get().mut_stdout );
-#endif
-
pthread_mutex_destroy( &mut_vec_elem );
}
void
base::add_elem( name* p_name )
{
-#ifdef VERBOSE_
- pthread_mutex_lock ( &MUTX::get().mut_stdout );
- cout << "base::add_elem( name* )" << endl;
- pthread_mutex_unlock( &MUTX::get().mut_stdout );
-#endif
-
pthread_mutex_lock ( &mut_vec_elem );
vec_elem.push_back ( p_name );
pthread_mutex_unlock( &mut_vec_elem );
@@ -45,12 +26,6 @@ base::add_elem( name* p_name )
bool
base::del_elem( string &s_name )
{
-#ifdef VERBOSE_
- pthread_mutex_lock ( &MUTX::get().mut_stdout );
- cout << "base::del_elem( \"" << s_name << "\" )" << endl;
- pthread_mutex_unlock( &MUTX::get().mut_stdout );
-#endif
-
vector<name*>::iterator iter;
pthread_mutex_lock ( &mut_vec_elem );
@@ -73,12 +48,6 @@ base::del_elem( string &s_name )
name*
base::get_elem( string &s_name, bool &b_found )
{
-#ifdef VERBOSE_
- pthread_mutex_lock ( &MUTX::get().mut_stdout );
- cout << "base:get_elem( \"" << s_name << "\", bool )" << endl;
- pthread_mutex_unlock( &MUTX::get().mut_stdout );
-#endif
-
vector<name*>::iterator iter;
pthread_mutex_lock ( &mut_vec_elem );
@@ -104,12 +73,6 @@ base::get_elem( string &s_name, bool &b_found )
void
base::run_func( void (*func)(name*, void*), void* v_arg )
{
-#ifdef VERBOSE_
- pthread_mutex_lock ( &MUTX::get().mut_stdout );
- cout << "base:run_func( void (*func)(name*, void*), void* )" << endl;
- pthread_mutex_unlock( &MUTX::get().mut_stdout );
-#endif
-
vector<name*>::iterator iter;
pthread_mutex_lock ( &mut_vec_elem );