Change focus_lock init/lock/unlock/clear location 37/265937/4 accepted/tizen/unified/20211109.042850 submit/tizen/20211108.065142 submit/tizen/20211108.233216
authorSangchul Lee <sangchul1011@gmail.com>
Tue, 2 Nov 2021 05:34:29 +0000 (14:34 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 8 Nov 2021 01:38:54 +0000 (10:38 +0900)
commitf7da0699df1a48ecfa6863a3b0ef99c31d9464dc
treecb2c968b3364da3f2533c9aaa0dd6e3b224897ab
parent8705f776374dd0cec04fe9e9adb56a6cf529ea87
Change focus_lock init/lock/unlock/clear location

These moves make a improvement for race condition between focus
state callback and destroying handle. It fixes an abort issue from
unlocking mutex that is already unlocked.

'is_destroying' variable is added and is set to return earlier in the
focus state callback.

[Version] 0.13.14
[Issue Type] Improvement

Change-Id: Ic71341fef3e7e0f1d40f55a6bd470ed6bb423651
include/mm_sound_focus_private.h
mm_sound_client.c
mm_sound_focus_private.c
packaging/libmm-sound.spec