libdbus Missing Async Calls

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Sat Jan 13 20:59:06 UTC 2018


On Sat, 13 Jan 2018 08:53:03 -0800, Thiago Macieira wrote:

> On Friday, 12 January 2018 22:55:24 PST Lawrence D'Oliveiro wrote:
>
>> On Fri, 12 Jan 2018 22:23:15 -0800, Thiago Macieira wrote:
>>>
>>> On Friday, 12 January 2018 00:17:09 PST Lawrence D'Oliveiro wrote:
>>>>
>>>> Well, one workaround is to do the blocking call on a separate
>>>> thread
>>>> <https://github.com/ldo/dbussy/commit/981395208b706d646b8b55873fcae8da09238fdd> ...
>>>
>>> Which you're going to need if you're going to do multithreaded
>>> programming anyway.
>> 
>> Which I am trying to avoid--that being the whole point of async
>> coroutines.  
> 
> Let me be clear: you CANNOT use threads with your design.  And by
> "you", I mean both your code and the user's code that uses your API.

First you say I’m going to need threads, next you say I “CANNOT” use
threads.

So are you agreeing with me, or disagreeing?


More information about the dbus mailing list