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:
parent
1b5f626633
commit
3f3f9cb61a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue