libcamera: ipa: raspberrypi: ALSC: Camera mode does not need to be atomic
In the libcamera framework, SwitchMode (which overwrites the camera_mode) cannot run concurrently with Prepare (which uses it). Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Naushir Patuck <naush@raspberrypi.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
09b1d0fced
commit
3a680a667f
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ private:
|
||||||
// configuration is read-only, and available to both threads
|
// configuration is read-only, and available to both threads
|
||||||
AlscConfig config_;
|
AlscConfig config_;
|
||||||
bool first_time_;
|
bool first_time_;
|
||||||
std::atomic<CameraMode> camera_mode_;
|
CameraMode camera_mode_;
|
||||||
std::thread async_thread_;
|
std::thread async_thread_;
|
||||||
void asyncFunc(); // asynchronous thread function
|
void asyncFunc(); // asynchronous thread function
|
||||||
std::mutex mutex_;
|
std::mutex mutex_;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue