Rhymes with BAutolock... :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@153 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3088c8d093
commit
4dd5a911be
@ -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();
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user