mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 09:33:29 +02:00
make tryLock actually return a bool
This commit is contained in:
parent
9798538ea5
commit
00e98ee42b
1 changed files with 2 additions and 2 deletions
|
@ -240,9 +240,9 @@ public:
|
|||
|
||||
// Octree does not currently handle its own locking, caller must use these to lock/unlock
|
||||
void lockForRead() { lock.lockForRead(); }
|
||||
void tryLockForRead() { lock.tryLockForRead(); }
|
||||
bool tryLockForRead() { return lock.tryLockForRead(); }
|
||||
void lockForWrite() { lock.lockForWrite(); }
|
||||
void tryLockForWrite() { lock.tryLockForWrite(); }
|
||||
bool tryLockForWrite() { return lock.tryLockForWrite(); }
|
||||
void unlock() { lock.unlock(); }
|
||||
|
||||
unsigned long getOctreeElementsCount();
|
||||
|
|
Loading…
Reference in a new issue