expose mutex in LimitedNodeList

This commit is contained in:
Zach Pomerantz 2016-11-28 17:13:09 -05:00
parent 41ef105456
commit e6dfc5204d

View file

@ -175,6 +175,8 @@ public:
SharedNodePointer findNodeWithAddr(const HifiSockAddr& addr);
QReadWriteLock& getMutex() { return _nodeMutex; }
template<typename NodeLambda>
void eachNode(NodeLambda functor) {
QReadLocker readLock(&_nodeMutex);