You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
259 B

14 years ago
#include "Mutex.hpp"
Mutex::Mutex()
{
pthread_mutex_init( &m_mutex, 0 );
}
Mutex::~Mutex()
{
pthread_mutex_destroy ( &m_mutex );
}
void Mutex::lock()
{
pthread_mutex_lock( &m_mutex );
}
void Mutex::unlock()
{
pthread_mutex_unlock ( &m_mutex );
}