[wifi] Modified logic so that callback is sent to their respective thread 23/56323/1
authorSaurav Babu <saurav.babu@samsung.com>
Wed, 6 Jan 2016 10:06:05 +0000 (15:36 +0530)
committerSaurav Babu <saurav.babu@samsung.com>
Wed, 6 Jan 2016 10:06:05 +0000 (15:36 +0530)
commitea2c78cbe73951d104f43beb1ca260479e2822dd
treef7526361a4f980d43ef14479bde5edce818b4ab8
parentbcba2c493b2fde1b5a3f47399ad575d19be2a10c
[wifi] Modified logic so that callback is sent to their respective thread

Currently for sending few callbacks to application g_idle_add_full() is
used. g_idle_add_full() adds the callback in global main context of the
application and not the context in which thread was operating. See
description at
https://developer.gnome.org/glib/stable/glib-The-Main-Event-Loop.html#g-idle-add-full
This patch modifies the logic to create a g_idle_source_new() and then
attach this source to the thread's context rather than global main
context of application.

Change-Id: If9a52eff79a9684edf572e6707372f630f3cac61
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
src/libnetwork.c