summaryrefslogtreecommitdiff
path: root/src/itolocker.cpp
blob: 17e97fd6bd2ad7249b55b80df925897d07990a79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "bu/itolocker.h"
#include "bu/itomutex.h"

Bu::ItoLocker::ItoLocker( Bu::ItoMutex &mu ) :
	mu( mu )
{
	mu.lock();
}

Bu::ItoLocker::~ItoLocker()
{
	mu.unlock();
}