AutoLocker: get ability to get lockable
Change-Id: Id8f554494ce83725c40ccebdf0e58e54bf1bf47c Reviewed-on: https://review.haiku-os.org/c/haiku/+/4920 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
fce7f3a748
commit
32fd04c959
@ -155,10 +155,17 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
inline void Detach()
|
||||
inline Lockable* Get()
|
||||
{
|
||||
return fLockable;
|
||||
}
|
||||
|
||||
inline Lockable* Detach()
|
||||
{
|
||||
Lockable* res = fLockable;
|
||||
fLockable = NULL;
|
||||
fLocked = false;
|
||||
return res;
|
||||
}
|
||||
|
||||
inline AutoLocker<Lockable, Locking>& operator=(Lockable* lockable)
|
||||
|
Loading…
Reference in New Issue
Block a user