pthread_lock.h 285 B

12345678910111213141516171819202122
  1. #ifndef PTHREAD_LOCK_H
  2. #define PTHREAD_LOCK_H
  3. #include "lock.h"
  4. #include <pthread.h>
  5. class PthreadLock : public LockImplementation
  6. {
  7. public:
  8. PthreadLock();
  9. ~PthreadLock();
  10. void acquire();
  11. void release();
  12. private:
  13. pthread_mutex_t _mutx;
  14. };
  15. #endif // PTHREAD_LOCK_H