diff options
| author | Paul Buetow (mars.fritz.box) <paul@buetow.org> | 2013-12-15 11:49:02 +0100 |
|---|---|---|
| committer | Paul Buetow (mars.fritz.box) <paul@buetow.org> | 2013-12-15 11:49:02 +0100 |
| commit | 3a96ab7e91145b367d05e98533b5f426f762f83f (patch) | |
| tree | ac7758a706066e14b785ab6e5f7071a54baa856b /yhttpd/src/name.cpp | |
| parent | 332d7b2107833018b3ef67b64ffe121bff1ef4fb (diff) | |
add packagespackages
Diffstat (limited to 'yhttpd/src/name.cpp')
| -rw-r--r-- | yhttpd/src/name.cpp | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/yhttpd/src/name.cpp b/yhttpd/src/name.cpp deleted file mode 100644 index 79167f5..0000000 --- a/yhttpd/src/name.cpp +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef NAME_CPP -#define NAME_CPP - -#include "name.h" -#include "tool/tool.h" - -using namespace std; - -name::name() -{ - pthread_mutex_init( &mut_s_name, NULL); -} - -name::name( string s_name ) -{ - pthread_mutex_init( &mut_s_name, NULL); - set_name( s_name ); -} - -name::~name() -{ - pthread_mutex_destroy( &mut_s_name ); -} - -string -name::get_name() -{ - string s_ret; - pthread_mutex_lock ( &mut_s_name ); - s_ret = s_name; - pthread_mutex_unlock( &mut_s_name ); - return s_ret; -} - -string -name::get_lowercase_name() -{ - return tool::to_lower( get_name() ); -} - -void -name::set_name( string s_name ) -{ - pthread_mutex_lock ( &mut_s_name ); - this->s_name = s_name; - pthread_mutex_unlock( &mut_s_name ); -} - -#endif |
