]> git.sesse.net Git - cubemap/blob - mutexlock.cpp
Rename header_or_error to header_or_short_response, as it will soon be able to contai...
[cubemap] / mutexlock.cpp
1 #include "mutexlock.h"
2
3 MutexLock::MutexLock(pthread_mutex_t *mutex)
4         : mutex(mutex)
5 {
6         pthread_mutex_lock(this->mutex);
7 }
8
9 MutexLock::~MutexLock()
10 {
11         pthread_mutex_unlock(this->mutex);
12 }
13