* added IsLocked() method to AutoWriteLocker
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21789 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -112,6 +112,11 @@ class AutoWriteLocker {
|
|||||||
fLock.WriteLock();
|
fLock.WriteLock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool IsLocked() const
|
||||||
|
{
|
||||||
|
return fLock.IsWriteLocked();
|
||||||
|
}
|
||||||
|
|
||||||
~AutoWriteLocker()
|
~AutoWriteLocker()
|
||||||
{
|
{
|
||||||
fLock.WriteUnlock();
|
fLock.WriteUnlock();
|
||||||
|
|||||||
Reference in New Issue
Block a user