[Live-devel] Non blocking read in ByteStreamFileSource

Kumar Sambhav sambhav at saranyu.in
Mon Feb 27 19:35:28 PST 2012


Hi,

I am using named pipes instead of a file for on demand server. 

In  ByteStreamFileSource::doReadFromFile(), read/fread blocks until there is any data. 
I want to make this non-blocking by calling select on the pipe to check if there is any data on the pipe. 
If there is no data , can doReadFromFile() be scheduled after a specified time ?

Regards,
Sambhav 


More information about the live-devel mailing list