diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-02-16 14:51:04 -0800 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-02-16 14:51:04 -0800 |
commit | dfc2829b8cda018d5eb61b98ae1e2a9ee6e01e26 (patch) | |
tree | a982cbd60b9651fd7a816116a4890df314c9d122 /btio | |
parent | d13f06193cce07e2ad97070ad32e059d76cac4b7 (diff) | |
download | bluez-dfc2829b8cda018d5eb61b98ae1e2a9ee6e01e26.tar.gz |
btio: Use G_PRIORITY_HIGH for watches
This makes btio watches default to G_PRIORITY_HIGH instead of
G_PRIORITY_DEFAULT so it takes priority over regular traffic or
timeout handling.
Diffstat (limited to 'btio')
-rw-r--r-- | btio/btio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/btio/btio.c b/btio/btio.c index 8230212b4..1f1c374bc 100644 --- a/btio/btio.c +++ b/btio/btio.c @@ -274,7 +274,7 @@ static void server_add(GIOChannel *io, BtIOConnect connect, server->destroy = destroy; cond = G_IO_IN | G_IO_ERR | G_IO_HUP | G_IO_NVAL; - g_io_add_watch_full(io, G_PRIORITY_DEFAULT, cond, server_cb, server, + g_io_add_watch_full(io, G_PRIORITY_HIGH, cond, server_cb, server, (GDestroyNotify) server_remove); } @@ -291,7 +291,7 @@ static void connect_add(GIOChannel *io, BtIOConnect connect, bdaddr_t dst, conn->dst = dst; cond = G_IO_OUT | G_IO_ERR | G_IO_HUP | G_IO_NVAL; - g_io_add_watch_full(io, G_PRIORITY_DEFAULT, cond, connect_cb, conn, + g_io_add_watch_full(io, G_PRIORITY_HIGH, cond, connect_cb, conn, (GDestroyNotify) connect_remove); } @@ -307,7 +307,7 @@ static void accept_add(GIOChannel *io, BtIOConnect connect, gpointer user_data, accept->destroy = destroy; cond = G_IO_OUT | G_IO_ERR | G_IO_HUP | G_IO_NVAL; - g_io_add_watch_full(io, G_PRIORITY_DEFAULT, cond, accept_cb, accept, + g_io_add_watch_full(io, G_PRIORITY_HIGH, cond, accept_cb, accept, (GDestroyNotify) accept_remove); } |