mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
This reverts commitd5cea508e0
. Origin commit data ------------------ Branch: master Commit:6b8b8cd551
Author: max_10 <max_10@gmx.de> Date: 2018-09-20 (Thu, 20 Sep 2018) ------------------ This commit was generated by Migit
23 lines
262 B
C++
23 lines
262 B
C++
#include "mutex_abstraction.h"
|
|
|
|
Mutex::Mutex() :
|
|
mMutex()
|
|
{
|
|
pthread_mutex_init(&mMutex, 0);
|
|
}
|
|
|
|
Mutex::~Mutex()
|
|
{
|
|
pthread_mutex_destroy(&mMutex);
|
|
}
|
|
|
|
void Mutex::lock()
|
|
{
|
|
pthread_mutex_lock(&mMutex);
|
|
}
|
|
|
|
void Mutex::unlock()
|
|
{
|
|
pthread_mutex_unlock(&mMutex);
|
|
}
|