Added ReadLockWithTimeout().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37685 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3555a42f18
commit
6fc498dafd
@ -79,6 +79,8 @@ public:
|
||||
void Touched(int32 mode);
|
||||
|
||||
inline bool ReadLock();
|
||||
inline bool ReadLockWithTimeout(uint32 timeoutFlags,
|
||||
bigtime_t timeout);
|
||||
inline void ReadUnlock();
|
||||
inline bool WriteLock();
|
||||
inline void WriteUnlock();
|
||||
@ -149,6 +151,14 @@ Node::ReadLock()
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
Node::ReadLockWithTimeout(uint32 timeoutFlags, bigtime_t timeout)
|
||||
{
|
||||
return rw_lock_read_lock_with_timeout(&fLock, timeoutFlags, timeout)
|
||||
== B_OK;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
Node::ReadUnlock()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user