* Added operator=().

* Style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30740 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2009-05-13 07:46:14 +00:00
parent a243916712
commit 49dcde5cf5
+8
View File
@@ -158,6 +158,14 @@ public:
return *this;
}
inline ThisClass& operator=(ThisClass& otherLocker)
{
fLockable = otherLocker.fLockable;
fLocked = otherLocker.fLocked;
otherLocker.Detach();
return &this;
}
inline bool IsLocked() const { return fLocked; }
inline operator bool() const { return fLocked; }