library: add client mutex lock for multi-thread 73/47973/2 tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/mobile/20150911.091309 accepted/tizen/tv/20150911.091316 accepted/tizen/wearable/20150911.091325 submit/tizen/20150910.115012 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release
authorSuchang Woo <suchang.woo@samsung.com>
Thu, 10 Sep 2015 11:26:42 +0000 (20:26 +0900)
committerSuchang Woo <suchang.woo@samsung.com>
Thu, 10 Sep 2015 11:37:59 +0000 (20:37 +0900)
commitb64f00d374be7a878d308cabf2e8c1a3929e08df
treea372412b989a1e21cfa2c1d2b8da0e34232a1d5e
parentb40ab9b047bbbe8ebee9b71ab5f58d17888186ba
library: add client mutex lock for multi-thread

For multi-thread, a mutex lock is added to the client library.
This patch is workaround. Because a function protected by a lock can
be reentered in a callback function. To prevent dead-lock, a mutex
lock should be unlocked when it calls a callback function.

Change-Id: Ic40a6ba0715c5f9bd9f24bc7fd03bc23f1f9519e
lib/buxton2.c