File: mutexlock.h

package info (click to toggle)
cubemap 1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 380 kB
  • ctags: 398
  • sloc: cpp: 3,895; sh: 114; perl: 86; makefile: 61
file content (16 lines) | stat: -rw-r--r-- 255 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef _MUTEXLOCK_H
#define _MUTEXLOCK_H 1

#include <pthread.h>

// Locks a pthread mutex, RAII-style.
class MutexLock {
public:
	MutexLock(pthread_mutex_t *mutex);
	~MutexLock();

private:
	pthread_mutex_t *mutex;
};

#endif  // !defined(_MUTEXLOCK_H)