Re: libdbus Missing Async Calls

Thiago Macieira <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <10619751.Zoi6mgnkLi@tjmaciei-mobl1>
On Friday, 12 January 2018 00:17:09 PST Lawrence D'Oliveiro wrote:
> On Wed, 10 Jan 2018 21:00:44 +1300, I wrote:
> > In Dbussy <https://github.com/ldo/dbussy>, I have been able to provide
> > async variants of every part of the connection setup process, except
> > the initial dbus_connection_open/dbus_connection_open_private calls:
> > these calls are synchronous only.
> 
> Well, one workaround is to do the blocking call on a separate thread
> <https://github.com/ldo/dbussy/commit/981395208b706d646b8b55873fcae8da09238f
> dd> 

Which you're going to need if you're going to do multithreaded programming 
anyway. Otherwise, your async solution is nice but only if used from one 
thread at most and it must never block.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center

_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.