Add defensive code for signal missing when destroy handle 90/113390/1
authorJeongmo Yang <jm80.yang@samsung.com>
Tue, 7 Feb 2017 06:45:22 +0000 (15:45 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Tue, 7 Feb 2017 09:13:02 +0000 (18:13 +0900)
commit1e2575c955290bfa40f72ea54145a92c11c4614f
tree9acb8e35524ae046485e2320db7164c92aaa248f
parentea3e348ca4e00246dc94516e17d133c55e15dc79
Add defensive code for signal missing when destroy handle

It seems that signal to quit task thread is missed when destroy handle,
so, call g_cond_wait_until instead of g_cond_wait after stop preview is called,
then, task thread can be quit although it does not receive signal.

[Version] 0.2.70
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-3.0-mobile_20170206.3]

Change-Id: I9338a6bd779d9f19eae027f5a75f72f3b1498cba
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
muse/src/muse_camera_dispatcher.c
packaging/mmsvc-camera.spec