summaryrefslogtreecommitdiff
path: root/test/signal-threads.cpp
diff options
context:
space:
mode:
authorDavid Plowman <david.plowman@raspberrypi.com>2021-02-10 17:58:30 +0000
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-02-11 19:14:39 +0200
commitdb55e09b42f87d9a7fde32afc4e0eee90b4c7690 (patch)
treeaaa92af273619220ec683a4a2bf546363ab85cac /test/signal-threads.cpp
parente36a6f40433ce661610f34ed2db31e82e22c579d (diff)
ipa: raspberrypi: AWB: Fix race condition setting manual gains
Applying the manual_r_ and manual_b_ values is entirely removed from the asynchronous thread where their use constituted a race hazard. The main thread now deals with them entirely, involving the following changes. 1. SetManualGains() applies the new values directly to the "sync_results", meaning that Prepare() will jump to the new values immediately (which is a better behaviour). 2. Process() does not restart the asynchronous thread when manual gains are in force. 3. The asynchronous thread might be running when manual gains are set, so we ignore the results produced in this case. 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>
Diffstat (limited to 'test/signal-threads.cpp')
0 files changed, 0 insertions, 0 deletions
n121'>121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170