File: mutexlock.cpp

package info (click to toggle)
cubemap 1.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 428 kB
  • sloc: cpp: 4,431; sh: 114; perl: 102; makefile: 60
file content (13 lines) | stat: -rw-r--r-- 189 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "mutexlock.h"

MutexLock::MutexLock(pthread_mutex_t *mutex)
	: mutex(mutex)
{
	pthread_mutex_lock(this->mutex);
}

MutexLock::~MutexLock()
{
	pthread_mutex_unlock(this->mutex);
}