From 520f54d6219b7c625b4e07463ac393e6982ddab6 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 6 Apr 2013 13:14:41 +0200 Subject: tagging ychat-0.7.1 --- src/maps/hmap.tmpl | 4 ++++ src/maps/mtools.h | 4 ++++ src/maps/nmap.h | 3 +++ src/maps/smap.h | 2 ++ src/maps/smap.tmpl | 4 ++++ 5 files changed, 17 insertions(+) (limited to 'src/maps') diff --git a/src/maps/hmap.tmpl b/src/maps/hmap.tmpl index cc2ec24..dcd0426 100644 --- a/src/maps/hmap.tmpl +++ b/src/maps/hmap.tmpl @@ -286,4 +286,8 @@ hmap::get_size() return size; } + + + #endif + diff --git a/src/maps/mtools.h b/src/maps/mtools.h index 6062191..f32a49e 100644 --- a/src/maps/mtools.h +++ b/src/maps/mtools.h @@ -1,6 +1,7 @@ #ifndef MTOOLS_H #define MTOOLS_H + template struct mtools { @@ -8,4 +9,7 @@ struct mtools }; #include "mtools.tmpl" + #endif + + diff --git a/src/maps/nmap.h b/src/maps/nmap.h index e29da3b..56d30f5 100644 --- a/src/maps/nmap.h +++ b/src/maps/nmap.h @@ -19,4 +19,7 @@ class nmap : public smap }; #include "nmap.tmpl" + #endif + + diff --git a/src/maps/smap.h b/src/maps/smap.h index a3ee89d..2096139 100644 --- a/src/maps/smap.h +++ b/src/maps/smap.h @@ -13,6 +13,7 @@ template class smap : public hmap { + private: pthread_mutex_t mut_smap; @@ -52,4 +53,5 @@ class smap : public hmap }; #include "smap.tmpl" + #endif diff --git a/src/maps/smap.tmpl b/src/maps/smap.tmpl index 670b84d..5ec7d38 100644 --- a/src/maps/smap.tmpl +++ b/src/maps/smap.tmpl @@ -15,6 +15,7 @@ smap::~smap() pthread_mutex_destroy( &mut_smap ); } + template void smap::lock_mutex() { pthread_mutex_lock( &mut_smap ); @@ -164,6 +165,7 @@ void smap::make_empty_insecure( void (*func)(key_type) ) hmap::make_empty( func ); } + template void smap::add_elem_insecure( const obj_type &x, const key_type &k ) { @@ -212,4 +214,6 @@ smap::get_key_vector_insecure() return hmap::get_key_vector(); } + #endif + -- cgit v1.2.3