Skip to content
Snippets Groups Projects
Commit 53aa1cd5 authored by Aaron Cuevas Lopez's avatar Aaron Cuevas Lopez
Browse files

Lock event metadata when copying event channels

parent 42970504
No related branches found
No related tags found
No related merge requests found
...@@ -196,7 +196,7 @@ protected: ...@@ -196,7 +196,7 @@ protected:
}; };
//Special class for event and spike info objects, whose events can hold extra metadata //Special class for event and spike info objects, whose events can hold extra metadata
class PLUGIN_API MetaDataEventObject : private MetaDataEventLock class PLUGIN_API MetaDataEventObject : public MetaDataEventLock
{ {
public: public:
//This method will only work when creating the info object, but not for those copied down the chain //This method will only work when creating the info object, but not for those copied down the chain
......
...@@ -320,7 +320,7 @@ void GenericProcessor::update() ...@@ -320,7 +320,7 @@ void GenericProcessor::update()
{ {
DataChannel* sourceChan = sourceNode->dataChannelArray[i]; DataChannel* sourceChan = sourceNode->dataChannelArray[i];
DataChannel* ch = new DataChannel (*sourceChan); DataChannel* ch = new DataChannel (*sourceChan);
if (i < m_recordStatus.size()) if (i < m_recordStatus.size())
{ {
...@@ -336,12 +336,14 @@ void GenericProcessor::update() ...@@ -336,12 +336,14 @@ void GenericProcessor::update()
{ {
EventChannel* sourceChan = sourceNode->eventChannelArray[i]; EventChannel* sourceChan = sourceNode->eventChannelArray[i];
EventChannel* ch = new EventChannel (*sourceChan); EventChannel* ch = new EventChannel (*sourceChan);
ch->eventMetaDataLock = true;
eventChannelArray.add (ch); eventChannelArray.add (ch);
} }
for (int i = 0; i < sourceNode->spikeChannelArray.size(); ++i) for (int i = 0; i < sourceNode->spikeChannelArray.size(); ++i)
{ {
SpikeChannel* sourceChan = sourceNode->spikeChannelArray[i]; SpikeChannel* sourceChan = sourceNode->spikeChannelArray[i];
SpikeChannel* ch = new SpikeChannel(*sourceChan); SpikeChannel* ch = new SpikeChannel(*sourceChan);
ch->eventMetaDataLock = true;
spikeChannelArray.add(ch); spikeChannelArray.add(ch);
} }
for (int i = 0; i < sourceNode->configurationObjectArray.size(); ++i) for (int i = 0; i < sourceNode->configurationObjectArray.size(); ++i)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment