livoxGen1: call PcloudStimulusBuffer::start/stop
We now call start()/stop() in attach/detachDeviceReq.
This commit is contained in:
@@ -69,6 +69,9 @@ public:
|
||||
// Control methods
|
||||
void start()
|
||||
{
|
||||
std::cout << __func__ << ": Starting stimulus buffer for device "
|
||||
<< deviceAttachmentSpec.deviceSelector << std::endl;
|
||||
|
||||
shouldContinue.store(true);
|
||||
scheduleNextTimeout();
|
||||
}
|
||||
@@ -141,6 +144,9 @@ inline void StimulusBuffer::stop()
|
||||
|
||||
bridge.waitForAsyncOperationCompleteOrIoServiceStopped();
|
||||
|
||||
std::cout << __func__ << ": Stopped stimulus buffer for device "
|
||||
<< deviceAttachmentSpec.deviceSelector << std::endl;
|
||||
|
||||
// After delay, cancel timer and perform cleanup
|
||||
timer.cancel();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user