History

changed writelock to readlock

plus a coding standard fix

wangyix committed 12 years ago

Commit e45f2fe1 parent ff2a5342 files · +4 −2Browse files

Showing the changes to interface/src/Application.cpp (1 of 2 files). Show all

Unified · Split

interface/src/Application.cpp+1−1
@@ -2123,7 +2123,7 @@ void Application::sendNack() { · 2122 unmodified lines
2123 2123
2124 QUuid nodeUUID = node->getUUID();2124 QUuid nodeUUID = node->getUUID();
2125 2125
2126 _octreeSceneStatsLock.lockForWrite();2126 _octreeSceneStatsLock.lockForRead();
2127 2127
2128 // retreive octree scene stats of this node2128 // retreive octree scene stats of this node
2129 if (_octreeServerSceneStats.find(nodeUUID) == _octreeServerSceneStats.end()) {2129 if (_octreeServerSceneStats.find(nodeUUID) == _octreeServerSceneStats.end()) {