move script-engine library to intel tbb concurrent map

This commit is contained in:
Stephen Birarda 2014-11-06 13:47:56 -08:00
parent 51bc5d10b5
commit 38f2b2ac6a

View file

@ -520,11 +520,7 @@ void ScriptEngine::run() {
// write audio packet to AudioMixer nodes
NodeList* nodeList = NodeList::getInstance();
NodeHashSnapshot snapshotHash = nodeList->getNodeHash().snapshot_table();
for (auto it = snapshotHash.begin(); it != snapshotHash.end(); it++) {
SharedNodePointer node = it->second;
nodeList->eachNode([this, &nodeList, &audioPacket, &numPreSequenceNumberBytes](const SharedNodePointer& node){
// only send to nodes of type AudioMixer
if (node->getType() == NodeType::AudioMixer) {
// pack sequence number
@ -534,7 +530,7 @@ void ScriptEngine::run() {
// send audio packet
nodeList->writeDatagram(audioPacket, node);
}
}
});
}
}