Rename StimulusBuffer=>StimulusProducer

Next we'll split the StimulusBuffer-related stuff into a new class
StimulusBuffer.
This commit is contained in:
2025-11-14 19:50:51 -04:00
parent 74e3896ae4
commit 70c0175a8b
6 changed files with 36 additions and 36 deletions
@@ -1,5 +1,5 @@
#ifndef _STIMULUS_BUFFER_H
#define _STIMULUS_BUFFER_H
#ifndef _STIMULUS_PRODUCER_H
#define _STIMULUS_PRODUCER_H
#include <boostAsioLinkageFix.h>
#include <vector>
@@ -22,16 +22,16 @@ namespace smo {
namespace stim_buff {
/**
* StimulusBuffer manages a collection of stimulus frames with simultaneity stamps.
* StimulusProducer manages a collection of stimulus frames with simultaneity stamps.
*
* This buffer is designed to hold stimulus frames that have been assembled
* This producer is designed to hold stimulus frames that have been assembled
* from raw sensor data (e.g., Livox Avia point cloud data) and are ready
* for processing by the mind layer.
*
* The buffer provides thread-safe operations for adding frames, retrieving
* frames, and managing the buffer state.
* The producer provides thread-safe operations for adding frames, retrieving
* frames, and managing the producer state.
*/
class StimulusBuffer
class StimulusProducer
{
public:
class PcloudFormatDesc
@@ -48,7 +48,7 @@ public:
};
public:
explicit StimulusBuffer(
explicit StimulusProducer(
const std::shared_ptr<device::DeviceAttachmentSpec>
&deviceAttachmentSpec,
size_t nSlots,
@@ -61,18 +61,18 @@ public:
nDeferrals(0)
{}
virtual ~StimulusBuffer() = default;
virtual ~StimulusProducer() = default;
// Non-copyable, movable
StimulusBuffer(const StimulusBuffer&) = delete;
StimulusBuffer& operator=(const StimulusBuffer&) = delete;
StimulusBuffer(StimulusBuffer&&) = default;
StimulusBuffer& operator=(StimulusBuffer&&) = default;
StimulusProducer(const StimulusProducer&) = delete;
StimulusProducer& operator=(const StimulusProducer&) = delete;
StimulusProducer(StimulusProducer&&) = default;
StimulusProducer& operator=(StimulusProducer&&) = default;
// Control methods
virtual void start()
{
std::cout << __func__ << ": Starting stimulus buffer for device "
std::cout << __func__ << ": Starting stimulus producer for device "
<< deviceAttachmentSpec->deviceSelector << std::endl;
shouldContinue = true;
@@ -121,4 +121,4 @@ private:
} // namespace stim_buff
} // namespace smo
#endif // _STIMULUS_BUFFER_H
#endif // _STIMULUS_PRODUCER_H