cmatthew / Lind-misc

Misc files for the Lind project
3 stars 3 forks source link

Poll timings are not implemented #20

Closed cmatthew closed 12 years ago

cmatthew commented 12 years ago

Poll passes an optional time argument. This is the time to wait before returning unsuccessfully.

Our implementation of Poll currently does not obey this time, and just returns.

Ideally, we need a polling poll, which runs poll in a loop with a sleep, for up to the time passed.

cmatthew commented 12 years ago

OR reformat the poll arguments, and use the select sleep.

NitinJami commented 12 years ago

poll timing has been fixed, if timeout >= 0, it waits for that amount of time before it stops polling. If a negative value is given, poll runs for indefinite amount of time (blocking), until an event is triggered in any of the descriptor.