History

leverage new libcuckoo hash outside LimitedNodeList

Stephen Birarda committed 12 years ago

Commit 8a72cdd1 parent a492abc16 files · +157 −64Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 16 files). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+5−1
@@ -520,7 +520,11 @@ void ScriptEngine::run() { · 519 unmodified lines
520520
521521 // write audio packet to AudioMixer nodes
522522 NodeList* nodeList = NodeList::getInstance();
523− foreach(const SharedNodePointer& node, nodeList->getNodeHash()) {
523+ NodeHashSnapshot snapshotHash = nodeList->getNodeHash().snapshot_table();
524+
525+ for (auto it = snapshotHash.begin(); it != snapshotHash.end(); it++) {
526+ SharedNodePointer node = it->second;
527+
524528 // only send to nodes of type AudioMixer
525529 if (node->getType() == NodeType::AudioMixer) {
526530 // pack sequence number