#include #include #include #include #include #include #include "pcloudStimulusBuffer.h" namespace smo { namespace stim_buff { PcloudStimulusBuffer::PcloudStimulusBuffer( const device::DeviceAttachmentSpec& deviceAttachmentSpec, std::shared_ptr &device, const PcloudFormatDesc& formatDesc, size_t nDgramsPerStagingBufferFrame) : StimulusBuffer( deviceAttachmentSpec, static_cast((1000 * 30) / CONFIG_STIMBUFF_FRAME_PERIOD_MS), SpMcRingBuffer::InputEngineConstraints( static_cast(sysconf(_SC_PAGE_SIZE)), 4), device->componentThread->getIoService()), deviceAttachmentSpec(deviceAttachmentSpec), device(device), formatDesc(formatDesc), stagingBuffer( StagingBuffer::InputEngineConstraints::ioUringConstraints, OpenClConstraints(), nDgramsPerStagingBufferFrame) { } void PcloudStimulusBuffer::stimFrameProductionTimesliceInd() { // Release the spinlock for now frameAssemblyRateLimiter.release(); } } // namespace stim_buff } // namespace smo