From: Vinicius Costa Gomes <vinicius.gomes@intel.com>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH BlueZ] gdbus: Fix calling GetAll while GetManagedObject is pending
Date: Fri, 11 Aug 2017 12:56:17 -0700 [thread overview]
Message-ID: <87shgxev4u.fsf@intel.com> (raw)
In-Reply-To: <20170811125815.964-1-luiz.dentz@gmail.com>
Hi Luiz,
Luiz Augusto von Dentz <luiz.dentz@gmail.com> writes:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
>
> If proxies are created while the client is not ready put them into a
> pending list so only if they are not found in GetManagedObject reply
> call GetAll.
I tested this with a hacked gdbus/object.c to get into that
GetAll/GetManagedObjects condtion, and it works.
I just think that it could be simplified somewhat. What I am thinking is
that we don't need a "pending" list, each proxy can have a 'pending'
boolean, and instead we add it to proxy_list as soon as it is allocated.
I didn't try it, but it feels like it would work.
What do you think?
If you don't think it would work, or that it would end up harder to
read, this patch looks good to me.
Cheers,
--
Vinicius
next prev parent reply other threads:[~2017-08-11 19:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-11 12:58 [PATCH BlueZ] gdbus: Fix calling GetAll while GetManagedObject is pending Luiz Augusto von Dentz
2017-08-11 19:56 ` Vinicius Costa Gomes [this message]
2017-08-14 8:23 ` Luiz Augusto von Dentz
2017-08-14 9:42 ` 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=87shgxev4u.fsf@intel.com \
--to=vinicius.gomes@intel.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
/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