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
520 520
521 // write audio packet to AudioMixer nodes521 // write audio packet to AudioMixer nodes
522 NodeList* nodeList = NodeList::getInstance();522 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
524 // only send to nodes of type AudioMixer528 // only send to nodes of type AudioMixer
525 if (node->getType() == NodeType::AudioMixer) {529 if (node->getType() == NodeType::AudioMixer) {
526 // pack sequence number530 // pack sequence number