* 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:
@@ -158,6 +158,14 @@ public:
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline ThisClass& operator=(ThisClass& otherLocker)
|
||||||
|
{
|
||||||
|
fLockable = otherLocker.fLockable;
|
||||||
|
fLocked = otherLocker.fLocked;
|
||||||
|
otherLocker.Detach();
|
||||||
|
return &this;
|
||||||
|
}
|
||||||
|
|
||||||
inline bool IsLocked() const { return fLocked; }
|
inline bool IsLocked() const { return fLocked; }
|
||||||
|
|
||||||
inline operator bool() const { return fLocked; }
|
inline operator bool() const { return fLocked; }
|
||||||
|
|||||||
Reference in New Issue
Block a user