From d4f18350c740ef0d30c9a0d21077ffef98ff3db7 Mon Sep 17 00:00:00 2001 From: Balazs Racz Date: Tue, 4 May 2021 12:04:51 +0200 Subject: [PATCH] Adds a helper function to arrange better shutdown procedure in the BusMaster. (#538) --- 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() {