> -----Original Message-----
> From: iotivity-dev-bounces at lists.iotivity.org [mailto:iotivity-dev-
> bounces at lists.iotivity.org] On Behalf Of Thiago Macieira
> Sent: Wednesday, April 15, 2015 2:29 PM
> To: iotivity-dev at lists.iotivity.org
> Subject: Re: [dev] glib
> 
> 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.
> 
> On Linux, we could use a single epollfd with multiple sockets and timerfds
> connected to it.

And, if possible, it would be great if the upper layers provided the threads
and the lower stack never created/destroyed them. That is code for another
day.

Pat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7198 bytes
Desc: not available
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150415/54a06bca/attachment.p7s>

Reply via email to