jfjoch_writer: Not dependent on gRPC

This commit is contained in:
2023-11-15 10:40:03 +01:00
parent 049dffe91e
commit e8d576a563
20 changed files with 110 additions and 609 deletions
+6 -1
View File
@@ -51,8 +51,9 @@ void StreamWriter::Abort() {
image_puller.Abort();
}
StreamWriterStatistics StreamWriter::Run() {
StreamWriterStatistics StreamWriter::Run() {
StreamWriterStatistics ret;
start_message = StartMessage();
StartDataCollection();
try {
CollectImages(ret.data_file_stats);
@@ -68,3 +69,7 @@ StreamWriterStatistics StreamWriter::Run() {
ret.image_puller_stats.processed_images, ret.image_puller_stats.performance_MBs, ret.image_puller_stats.performance_Hz);
return ret;
}
std::future<StreamWriterStatistics> StreamWriter::RunFuture() {
return std::async(std::launch::async, &StreamWriter::Run, this);
}