Added Unlock() (an nicer sounding alias for Unset()) and Detach() (the lock is kept when the object is destroyed) to AutoLocker.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9547 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2004-10-27 21:54:12 +00:00
parent 1b5f626633
commit 3f3f9cb61a
1 changed files with 11 additions and 0 deletions

View File

@ -174,6 +174,17 @@ public:
_Unlock();
}
inline void Unlock()
{
_Unlock();
}
inline void Detach()
{
fLockable = NULL;
fLocked = false;
}
inline AutoLocker<Lockable, Locking> &operator=(Lockable *lockable)
{
SetTo(lockable);