select

John Stirling <[email protected]> Thu, 10 Sep 2009 15:20:16 +0100
Newsgroups gmane.comp.multimedia.helix.devel
Message-ID <[email protected]>
Can someone give me some pointers into how to hook stuff into the helix 
core select() mechanism.

We currently just kick helix every eg 10-50ms in a thread and are 
planning to replace that with a call to Selector->Select so we can kick 
it a bit more in line with demand from the core.

The basic select mechanism seems to be working ok. We can kick helix eg 
every 1 second as default and with the call to select in our loop we 
will see it kick the core more regularly when something is playing.

What I don't currently understand is how to hook something in (eg from a 
filesystem plugin) to the main core select mechanism. Specifically we 
have a replacement http filesystem that uses curl for the transfers and 
want to add the stuff returned from curl_multi_fdset (i think) into the 
list.

John