File: mutexlock.cpp

package info (click to toggle)
cubemap 1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 380 kB
  • ctags: 398
  • sloc: cpp: 3,895; sh: 114; perl: 86; makefile: 61
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);
}