mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
26 lines
344 B
C++
26 lines
344 B
C++
#ifndef _MUTEX_ABSTRACTION_H
|
|
#define _MUTEX_ABSTRACTION_H
|
|
|
|
#include <pthread.h>
|
|
|
|
class Mutex
|
|
{
|
|
friend class Condition;
|
|
|
|
pthread_mutex_t mMutex;
|
|
|
|
Mutex(const Mutex&);
|
|
const Mutex& operator=(const Mutex&);
|
|
|
|
protected:
|
|
explicit Mutex(int);
|
|
|
|
public:
|
|
Mutex();
|
|
virtual ~Mutex();
|
|
virtual void lock();
|
|
virtual void unlock();
|
|
};
|
|
|
|
#endif
|