From 3a1b50876c3811e5c10274f2d89a37c16d39a1f3 Mon Sep 17 00:00:00 2001 From: David Plowman Date: Thu, 4 Feb 2021 09:34:51 +0000 Subject: ipa: raspberrypi: AWB: Remove unnecessary locking for AWB settings AWB settings get updated synchronously with the main thread, so the settings_mutex_ and associated locking can be removed. Signed-off-by: David Plowman Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- src/ipa/raspberrypi/controller/rpi/awb.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/ipa/raspberrypi/controller/rpi/awb.hpp') diff --git a/src/ipa/raspberrypi/controller/rpi/awb.hpp b/src/ipa/raspberrypi/controller/rpi/awb.hpp index 83b81498..1b39ab4b 100644 --- a/src/ipa/raspberrypi/controller/rpi/awb.hpp +++ b/src/ipa/raspberrypi/controller/rpi/awb.hpp @@ -134,11 +134,9 @@ private: AwbStatus sync_results_; AwbStatus prev_sync_results_; std::string mode_name_; - std::mutex settings_mutex_; // The following are for the asynchronous thread to use, though the main // thread can set/reset them if the async thread is known to be idle: - void restartAsync(StatisticsPtr &stats, std::string const &mode_name, - double lux); + void restartAsync(StatisticsPtr &stats, double lux); // copy out the results from the async thread so that it can be restarted void fetchAsyncResults(); StatisticsPtr statistics_; -- cgit v1.2.1