From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ 2/3] btio: Use G_PRIORITY_HIGH for watches
Date: Tue, 16 Feb 2021 15:33:36 -0800 [thread overview]
Message-ID: <20210216233337.859955-2-luiz.dentz@gmail.com> (raw)
In-Reply-To: <20210216233337.859955-1-luiz.dentz@gmail.com>
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This makes btio watches default to G_PRIORITY_HIGH instead of
G_PRIORITY_DEFAULT so it takes priority over regular traffic or
timeout handling.
---
btio/btio.c | 6 +++---
1 file 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);
}
--
2.29.2
next prev parent reply other threads:[~2021-02-16 23:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-16 23:33 [PATCH BlueZ 1/3] avdtp: Fix setting disconnect timer when there is no local endpoints Luiz Augusto von Dentz
2021-02-16 23:33 ` Luiz Augusto von Dentz [this message]
2021-02-16 23:33 ` [PATCH BlueZ 3/3] avdtp: Remove use of G_PRIORITY_LOW Luiz Augusto von Dentz
2021-02-17 20:24 ` Miao-chen Chou
2021-02-17 21:21 ` Luiz Augusto von Dentz
2021-02-17 21:41 ` Miao-chen Chou
2021-02-16 23:57 ` [BlueZ,1/3] avdtp: Fix setting disconnect timer when there is no local endpoints bluez.test.bot
2021-02-17 19:45 ` Luiz Augusto von Dentz
2021-02-17 20:37 ` Miao-chen Chou
2021-02-17 21:24 ` Luiz Augusto von Dentz
2021-02-18 1:28 ` Luiz Augusto von Dentz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210216233337.859955-2-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).