* 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:
Stephan Aßmus
2007-08-02 13:04:27 +00:00
parent 9e12e9a72e
commit 78f1b0e97c
+5
View File
@@ -112,6 +112,11 @@ class AutoWriteLocker {
fLock.WriteLock();
}
bool IsLocked() const
{
return fLock.IsWriteLocked();
}
~AutoWriteLocker()
{
fLock.WriteUnlock();