Files
recycled-ni-libstb-hal/generic-pc/mutex_abstraction.h
smogm e36707596a add mutex and thread abstraction
Origin commit data
------------------
Branch: master
Commit: 78dd12e2dd
Author: smogm <smogm@vh0st.me>
Date: 2015-01-11 (Sun, 11 Jan 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2015-01-11 17:52:31 +01:00

21 lines
266 B
C++

#ifndef _MUTEX_ABSTRACTION_H
#define _MUTEX_ABSTRACTION_H
#include <pthread.h>
class Mutex
{
pthread_mutex_t mMutex;
Mutex(const Mutex&);
const Mutex& operator=(const Mutex&);
public:
Mutex();
virtual ~Mutex();
void lock();
void unlock();
};
#endif