summaryrefslogtreecommitdiff
path: root/test/libtest/camera_test.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-09-04 20:09:28 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-09-20 15:02:35 +0300
commit7720c4aefa95ee9df6e5d464c187efa7141f1302 (patch)
treec36def5f7da3a29783f2285e0b12b049355fb848 /test/libtest/camera_test.h
parent7208e70211a6ea35b9d889aedf942e607d20d66a (diff)
android: jpeg: exif: Use reentrant localtime_r()
The std::localtime() function isn't thread-safe, and we have no guarantee whether other threads in the camera service may or may not call it. Replace it with localtime_r(). This requires switching from ctime to time.h, as there is no std::localtime_r() function. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <email@uajain.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'test/libtest/camera_test.h')
0 files changed, 0 insertions, 0 deletions