StimBuff: DevAttSpec should be a sh_ptr, not a plain ref
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user