Access audio buffer mutually exclusive using state variable 48/258848/1 tizen_6.0
authorJi-hoon Lee <dalton.lee@samsung.com>
Wed, 26 May 2021 12:53:39 +0000 (21:53 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Wed, 26 May 2021 12:53:54 +0000 (21:53 +0900)
commit15f3af71f9cfa786bfb51273aaaf1714bdb95f6a
treeecb3fdb393d42df42d16438aa51a8e4ecabceac8
parentf80c126a0b58673a44f485a3b9b30eeacb34e20e
Access audio buffer mutually exclusive using state variable

The previous implementation replies on the thread's
joinable value, which is not set back to false
if the thread exits but no join() gets called.
For this reason, use a dedicated state variable
instead of joinable state, which correctly reflects
the active state of the streaming thread.

Change-Id: I1596a4649109011f8acb412896bfe9fdbefb7e05
plugins/wakeup-manager/inc/wakeup_audio_manager.h
plugins/wakeup-manager/src/wakeup_audio_manager.cpp
plugins/wakeup-manager/src/wakeup_manager_wrapper.cpp