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 <david.plowman@raspberrypi.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
David Plowman 2021-02-04 09:34:51 +00:00 committed by Laurent Pinchart
parent b2839ed68a
commit 3a1b50876c
2 changed files with 6 additions and 16 deletions

View file

@ -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_;