make tryLock actually return a bool

This commit is contained in:
ZappoMan 2014-01-31 15:44:48 -08:00
parent 9798538ea5
commit 00e98ee42b

View file

@ -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();