[MediaContent] Fixed possible deadlock issues of async methods. 74/153674/1
authorcoderhyme <jhyo.kim@samsung.com>
Fri, 29 Sep 2017 05:53:10 +0000 (14:53 +0900)
committercoderhyme <jhyo.kim@samsung.com>
Fri, 29 Sep 2017 05:53:10 +0000 (14:53 +0900)
commit0baade5ef12aa82898a36dbfd040299ef12eeaf6
treed733addc632866c5ce93b7d13be5efca42374855
parent12d005c34be06fb20d6f3a016c6f9aaeda5d9560
[MediaContent] Fixed possible deadlock issues of async methods.

It could occur when the continuations run synchronously, because the native implementaion holds mutex when it calls the callback.
In such situation if any related async method is called, it is going to be blocked.

Thus we need to force the continuations to run asyncronously.

Change-Id: I5aa12733cde352de65bc722ecebd8c6b3f92d55e
Signed-off-by: coderhyme <jhyo.kim@samsung.com>
src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaDatabase.cs
src/Tizen.Content.MediaContent/Tizen.Content.MediaContent/MediaInfoCommand.cs