summaryrefslogtreecommitdiff
path: root/src/name.cpp
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:46 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:46 +0200
commit56187184e11b085b82584d3b088c62f427aae83c (patch)
tree8f8387e750a62581966900a42dade265d34c3146 /src/name.cpp
parentd3a0d11f93c1ebe38b4301c9bef952bfd24d01a1 (diff)
tagging yhttpd-0.7.1yhttpd-0.7.1
Diffstat (limited to 'src/name.cpp')
-rwxr-xr-xsrc/name.cpp34
1 files changed, 18 insertions, 16 deletions
diff --git a/src/name.cpp b/src/name.cpp
index 79167f5..646b4d9 100755
--- a/src/name.cpp
+++ b/src/name.cpp
@@ -1,3 +1,5 @@
+// class name implementation.
+
#ifndef NAME_CPP
#define NAME_CPP
@@ -8,42 +10,42 @@ using namespace std;
name::name()
{
- pthread_mutex_init( &mut_s_name, NULL);
+ pthread_mutex_init( &mut_s_name, NULL);
}
-
name::name( string s_name )
{
- pthread_mutex_init( &mut_s_name, NULL);
- set_name( s_name );
+ pthread_mutex_init( &mut_s_name, NULL);
+ set_name( s_name );
}
name::~name()
{
- pthread_mutex_destroy( &mut_s_name );
+ pthread_mutex_destroy( &mut_s_name );
}
string
-name::get_name()
+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 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()
+name::get_lowercase_name()
{
- return tool::to_lower( get_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 );
+ pthread_mutex_lock ( &mut_s_name );
+ this->s_name = s_name;
+ pthread_mutex_unlock( &mut_s_name );
}
+
#endif