issues
search
slaclab
/
smurf-processor
SMuRF data processor
Other
1
stars
3
forks
source link
Use a class to handle SMuRF packets
#1
Closed
jesusvasquez333
closed
5 years ago
jesusvasquez333
commented
5 years ago
Add new class
SmurfPacket
to handle SMuRF packet,
The method
transmit
now receive a (smart) pointer to a SmurfPacket object,
Write a SMuRF packet to a file is now a method of the SmurfPacket class,
Use a thread to write the SMuRF packet to files
Use a circular buffer to store new SMuRF packets (SmurfPacket objects).
Multiple readers can read the packet from the buffer using; there are 2 readers in this case: the user defined transmitter, and the file writer
The buffer provides (smart) pointers to the writer and readers, without copying the data around
SmurfPacket
to handle SMuRF packet,transmit
now receive a (smart) pointer to a SmurfPacket object,