summaryrefslogtreecommitdiff
path: root/src/ipa
diff options
context:
space:
mode:
authorDavid Plowman <david.plowman@raspberrypi.com>2021-02-08 09:40:35 +0000
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-02-08 19:30:12 +0200
commit4625132b902cf648e6b0f3dfbcfb5699bc21ece1 (patch)
tree754415b20aba9b28ecaebdd78ac611cf456a1b3d /src/ipa
parent756fcbaaf2df0e563e066090f1d3e529f74ebe84 (diff)
ipa: raspberrypi: Remove atomic variable from Algorithm class
Pause() and Resume() are only called synchronously so paused_ does not need to be atomic. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa')
-rw-r--r--src/ipa/raspberrypi/controller/algorithm.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ipa/raspberrypi/controller/algorithm.hpp b/src/ipa/raspberrypi/controller/algorithm.hpp
index e9b040c7..5123c87b 100644
--- a/src/ipa/raspberrypi/controller/algorithm.hpp
+++ b/src/ipa/raspberrypi/controller/algorithm.hpp
@@ -12,7 +12,6 @@
#include <string>
#include <memory>
#include <map>
-#include <atomic>
#include "controller.hpp"
@@ -46,7 +45,7 @@ public:
private:
Controller *controller_;
- std::atomic<bool> paused_;
+ bool paused_;
};
// This code is for automatic registration of Front End algorithms with the