Added InitCheck() method.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29487 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -17,6 +17,8 @@ class BLocker {
|
|||||||
BLocker(const char* name, bool benaphoreStyle);
|
BLocker(const char* name, bool benaphoreStyle);
|
||||||
virtual ~BLocker();
|
virtual ~BLocker();
|
||||||
|
|
||||||
|
status_t InitCheck() const;
|
||||||
|
|
||||||
bool Lock(void);
|
bool Lock(void);
|
||||||
status_t LockWithTimeout(bigtime_t timeout);
|
status_t LockWithTimeout(bigtime_t timeout);
|
||||||
void Unlock(void);
|
void Unlock(void);
|
||||||
|
|||||||
@@ -93,6 +93,13 @@ BLocker::~BLocker()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
status_t
|
||||||
|
BLocker::InitCheck() const
|
||||||
|
{
|
||||||
|
return fSemaphoreID >= 0 ? B_OK : fSemaphoreID;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
BLocker::Lock(void)
|
BLocker::Lock(void)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user