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.

26 lines
270 B

14 years ago
#ifndef MUTEX_HPP
#define MUTEX_HPP
#include <pthread.h>
class Mutex
{
14 years ago
public:
Mutex(int type = PTHREAD_MUTEX_DEFAULT);
~Mutex();
void lock();
void unlock();
bool tryLock(int interval = 0);
14 years ago
private:
pthread_mutex_t m_mutex;
14 years ago
};
#endif // MUTEX_HPP