diff --git a/smmapdfw/rateconn_worker/Mutex.H b/smmapdfw/rateconn_worker/Mutex.H new file mode 100644 index 0000000..6921347 --- /dev/null +++ b/smmapdfw/rateconn_worker/Mutex.H @@ -0,0 +1,16 @@ +#ifndef _MUTEX_H_ +#define _MUTEX_H_ + +#include + + +class Mutex { +public: + Mutex(pthread_mutex_t *mutex) : m_mutex(mutex) { pthread_mutex_lock(m_mutex); }; + ~Mutex() { pthread_mutex_unlock(m_mutex); } +private: + pthread_mutex_t *m_mutex; +}; + + +#endif // _MUTEX_H_ \ No newline at end of file