From 31c7a95932aadc06ff931424506866c59736a051 Mon Sep 17 00:00:00 2001 From: Balazs Racz Date: Tue, 4 May 2021 10:13:12 +0200 Subject: [PATCH] Adds a helper function to arrange better shutdown procedure in the BusMaster. --- src/utils/BusMaster.hxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/utils/BusMaster.hxx b/src/utils/BusMaster.hxx index b6f33e7b2..96b59617f 100644 --- a/src/utils/BusMaster.hxx +++ b/src/utils/BusMaster.hxx @@ -96,6 +96,12 @@ public: { } + /// Used in unittests to cleanly shutdown the bus master. + void request_shutdown() + { + needShutdown_ = true; + } + /// Used in unittests to cleanly shutdown the bus master. void shutdown() {