[HAM] Fixed deadlock issue 26/319126/1 accepted/tizen_unified_toolchain accepted/tizen_unified_x_asan accepted/tizen/9.0/unified/20241030.235852 accepted/tizen/unified/20241016.160059 accepted/tizen/unified/toolchain/20241022.122311 accepted/tizen/unified/toolchain/20241022.122804 accepted/tizen/unified/x/20241017.030744 accepted/tizen/unified/x/asan/20241022.113255 tizen_9.0_m2_release
authorPiotr Kosko/Tizen API (PLT) /SRPOL/Engineer/Samsung Electronics <p.kosko@samsung.com>
Tue, 15 Oct 2024 12:15:33 +0000 (14:15 +0200)
committerPiotr Kosko/Tizen API (PLT) /SRPOL/Engineer/Samsung Electronics <p.kosko@samsung.com>
Tue, 15 Oct 2024 12:15:36 +0000 (14:15 +0200)
commitd95102443e9b7e8e67d3c20294bf1ced47ec1ddd
tree82056439a77370b222e19d6820ae51251d075ad9
parent10ec12c2dfa91693abc49e2a29284c06b010f1d1
[HAM] Fixed deadlock issue

Issue was visible in manual HAM test on emulator:
- HumanActivityMonitorManager_readRecorderData_type_PRESSURE

addRecordedData is called via SensorRecordedDataCb which is called in
ReadRecorderDataImpl function which has mutex locked there. Because of
that there was a deadlock.

Change-Id: I0ef35bb9674b50e9314e037fcf0ceb6feb82e084
src/humanactivitymonitor/humanactivitymonitor_manager.cc