#include <MTPropagatedSpikeBuffers.h>
Public Member Functions | |
MTPropagatedSpikeBuffers (int numThreads, int minDelay, int maxDelay, int chunkSize=PROPAGATED_SPIKE_BUFFER_CHUNK_SIZE) | |
Construction of the 2D array of propagated spike buffers. | |
virtual | ~MTPropagatedSpikeBuffers () |
Public Attributes | |
vector< vector < PropagatedSpikeBuffer * > > | buffers |
2D array of pointers to individual propagated spike buffers. |
Container of a two-dimensional array of PropagatedSpikeBuffer objects used in the MultiThreadSpikeScheduler for "non-conflict" concurrent inter-engine scheduling of spikes by multiple SingleThreadSimEngines.
If thread A has to schedule a spike which should be delivered to object in Thread B, then the spike is scheduled in buffer with indices [A][B].
Definition at line 15 of file MTPropagatedSpikeBuffers.h.
MTPropagatedSpikeBuffers::MTPropagatedSpikeBuffers | ( | int | numThreads, | |
int | minDelay, | |||
int | maxDelay, | |||
int | chunkSize = PROPAGATED_SPIKE_BUFFER_CHUNK_SIZE | |||
) |
Construction of the 2D array of propagated spike buffers.
numThreads | Number of threads for which the buffers should be constructed. | |
minDelay | minimum synapse delay in timesteps. Used for creating the propagated spike buffers. | |
maxDelay | Maximum synapse delay in timesteps. Used for creating the propagated spike buffers. | |
chunkSize | size of one allocated chunk of memory for propagated spike buffers. |
Definition at line 3 of file MTPropagatedSpikeBuffers.cpp.
References buffers.
MTPropagatedSpikeBuffers::~MTPropagatedSpikeBuffers | ( | ) | [virtual] |
vector<vector<PropagatedSpikeBuffer*> > MTPropagatedSpikeBuffers::buffers |
2D array of pointers to individual propagated spike buffers.
Definition at line 34 of file MTPropagatedSpikeBuffers.h.
Referenced by MultiThreadSpikeScheduler::deliverSpikes(), MTPropagatedSpikeBuffers(), MultiThreadSpikeScheduler::nextCycle(), MultiThreadSpikeScheduler::reset(), MultiThreadSpikeScheduler::scheduleSpike(), and ~MTPropagatedSpikeBuffers().