On Wed, Apr 15, 2015 at 11:28 AM, Thiago Macieira
<thiago.macieira at intel.com> wrote:
> On Wednesday 15 April 2015 16:30:21 Lankswert, Patrick wrote:
>> For example, It would be nice if we could use select() or epoll() to wait on
>> all stack events (IO or mutex). Unfortunately not all operating system and
>> IO interface support it the same way. That is, I may not be able to listen
>> to a Bluetooth connection using select().
>
> Correct, for Linux we'll need to get quite a lot via D-Bus. However, D-Bus is
> transported over sockets, so libdbus-1 offers a way to get the file 
> descriptors
> so you can add to select(). If we use GDBus, however, then it will do
> threading on its own anyway.
>
> In any case, it's not our job to do the select(). It's the application's. We
> just need to provide file descriptors timers for the integration.
>

This point should not be overlooked.

> On Linux, we could use a single epollfd with multiple sockets and timerfds
> connected to it.
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel Open Source Technology Center
>
> _______________________________________________
> iotivity-dev mailing list
> iotivity-dev at lists.iotivity.org
> https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to