mv_machine_learning: fix mutex bug
authorInki Dae <inki.dae@samsung.com>
Tue, 28 Feb 2023 02:25:54 +0000 (11:25 +0900)
committerKwanghoon Son <k.son@samsung.com>
Fri, 3 Mar 2023 08:11:58 +0000 (17:11 +0900)
commitf69cec376f70fb1d1527158faa997400c487bfa1
tree501747a37ec5cd5435058e1dec0ff27da2f58292
parent341e15574cd5d8591457d018b13f1687bb972875
mv_machine_learning: fix mutex bug

[Issue type] : bug fix

Fixed a mutex bug that race condition to context object happens due to using
a mutex per context. Context object should also be protected by mutex so
use a task group specific mutex instead of a mutex per a context.

Change-Id: I468d835f3758a905453c32124a75335de6bc8f8a
Signed-off-by: Inki Dae <inki.dae@samsung.com>
mv_machine_learning/common/include/context.h
mv_machine_learning/face_recognition/src/mv_face_recognition_open.cpp
mv_machine_learning/object_detection/src/mv_object_detection_open.cpp