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
21232123
21242124 QUuid nodeUUID = node->getUUID();
21252125
2126− _octreeSceneStatsLock.lockForWrite();
2126+ _octreeSceneStatsLock.lockForRead();
21272127
21282128 // retreive octree scene stats of this node
21292129 if (_octreeServerSceneStats.find(nodeUUID) == _octreeServerSceneStats.end()) {