stream-manager: handle ramp finished task only at the main thread 37/255837/5 accepted/tizen/unified/20210401.105903 submit/tizen/20210325.153451
authorSeungbae Shin <seungbae.shin@samsung.com>
Wed, 24 Mar 2021 07:08:00 +0000 (16:08 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Thu, 25 Mar 2021 10:20:06 +0000 (19:20 +0900)
commit98cb10c7170457fe5960cdcd56aa6f179f1d1990
treeaa4ed9c28aa585fc2b7131b4538b68ef4a94b78f
parent1a8818f89985dc752e2d95b021803d2edbdb70d6
stream-manager: handle ramp finished task only at the main thread

Sometimes sd handle is accessed simultaneously in different thread, which may leads to memory corruption.

This patch makes to handle ramp finish task directly only if inside of main thread.
Otherwise, request a message to make it handle from the main thread.
To avoid possible deadlock, request by posting(async) instead of send(sync).

[Version] 13.0.57
[Issue Type] Bug fix

Change-Id: I178dbc5b29adccc6f74e41b7e105681c3fd570d0
packaging/pulseaudio-modules-tizen.spec
src/stream-manager-priv.h
src/stream-manager.c