StimBuff: DevAttSpec should be a sh_ptr, not a plain ref

This commit is contained in:
2025-11-04 00:46:07 -04:00
parent 032e9ef8d5
commit f3a4c69597
6 changed files with 12 additions and 12 deletions
+4 -3
View File
@@ -48,7 +48,8 @@ public:
public:
explicit StimulusBuffer(
const device::DeviceAttachmentSpec& deviceAttachmentSpec,
const std::shared_ptr<device::DeviceAttachmentSpec>
&deviceAttachmentSpec,
size_t nSlots,
const SpMcRingBuffer::InputEngineConstraints& ringBufferConstraints,
boost::asio::io_service& ioService)
@@ -70,7 +71,7 @@ public:
virtual void start()
{
std::cout << __func__ << ": Starting stimulus buffer for device "
<< deviceAttachmentSpec.deviceSelector << std::endl;
<< deviceAttachmentSpec->deviceSelector << std::endl;
shouldContinue.store(true);
scheduleNextTimeout();
@@ -91,7 +92,7 @@ private:
void onTimeout(const boost::system::error_code& error);
public:
device::DeviceAttachmentSpec deviceAttachmentSpec;
std::shared_ptr<device::DeviceAttachmentSpec> deviceAttachmentSpec;
std::vector<StimFrame> frames_;
protected: