From: taesub kim Date: Wed, 8 Feb 2017 23:34:15 +0000 (+0900) Subject: Modified the define of global dbus connection for thread safety X-Git-Tag: submit/tizen/20170210.072732^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F55%2F113755%2F1;p=platform%2Fcore%2Fapi%2Fwifi.git Modified the define of global dbus connection for thread safety Change-Id: I77a17605ac3d224aa11ae0356466851d39ab44f8 Signed-off-by: Taesub Kim --- diff --git a/packaging/capi-network-wifi.spec b/packaging/capi-network-wifi.spec index 8336f46..416f5cb 100755 --- a/packaging/capi-network-wifi.spec +++ b/packaging/capi-network-wifi.spec @@ -1,6 +1,6 @@ Name: capi-network-wifi Summary: Network Wi-Fi library in TIZEN C API -Version: 1.0.85 +Version: 1.0.86 Release: 1 Group: System/Network License: Apache-2.0 diff --git a/src/libnetwork.c b/src/libnetwork.c index 84e3997..91277c4 100755 --- a/src/libnetwork.c +++ b/src/libnetwork.c @@ -70,7 +70,7 @@ static __thread GSList *managed_idler_list = NULL; static __thread bool wifi_is_feature_checked[WIFI_SUPPORTED_FEATURE_MAX] = {0, }; static __thread bool wifi_feature_supported[WIFI_SUPPORTED_FEATURE_MAX] = {0, }; -wifi_dbus *g_dbus_h = NULL; +static __thread wifi_dbus *g_dbus_h = NULL; bool _wifi_is_init(void) {