Rhymes with BAutolock... :-)

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@153 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Tyler Dauwalder 2002-07-12 20:27:54 +00:00
parent 3088c8d093
commit 4dd5a911be

View File

@ -1,14 +0,0 @@
#include <SafetyLock.h>
#include <Locker.h>
SafetyLock::SafetyLock(BLocker *locker)
: fLocker(locker)
{
if (fLocker)
fLocker->Lock();
}
SafetyLock::~SafetyLock() {
if (fLocker)
fLocker->Unlock();
}