jfjoch_writer: Not dependent on gRPC
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user