00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __libutilxx__sella__util__AutoMutex_H__
00010 #define __libutilxx__sella__util__AutoMutex_H__
00011
00012 #include "../../common.h"
00013
00014 #include <pthread.h>
00015
00016 namespace sella {
00017 namespace util {
00018 class AutoMutex;
00019 }
00020 }
00021
00022 class sella::util::AutoMutex {
00023 public:
00024 AutoMutex(pthread_mutex_t & mutex) throw ();
00025 ~AutoMutex() throw ();
00026
00027 private:
00028 pthread_mutex_t & mutex;
00029 };
00030
00031 #endif
00032
00033
00034
00035