Change priority of idler which calls vconf changed callback 19/116219/2
authorJiwoong Im <jiwoong.im@samsung.com>
Thu, 23 Feb 2017 09:57:17 +0000 (18:57 +0900)
committerJiwoong Im <jiwoong.im@samsung.com>
Thu, 23 Feb 2017 10:11:18 +0000 (19:11 +0900)
- If client is too busy to call vconf changed callback in idler,
  vconf changed callback is ignored.
  To guarantee call of vconf changed callback, change priority of idler
  to G_PRIORITY_HIGH.

Change-Id: Ic05bc06734fd674f0ffbc81809acabc11675f604
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
vconf-compat/vconf.c

index 5fd6fa8..5385e9c 100644 (file)
@@ -444,7 +444,7 @@ static void notify_cb(const struct buxton_layer *layer, const char *key,
        node->keyname = strdup(key);
        to_vconf_t(val, node);
 
-       g_idle_add(call_noti_cb, node);
+       g_idle_add_full(G_PRIORITY_HIGH, call_noti_cb, node, NULL);
 }
 
 static struct noti_cb *find_noti_cb(struct noti *noti, vconf_callback_fn cb)