I have a pipe in an iOS program and I want the main runloop (or any other runloop) to let me know when there is data to read...
So how can I add the file descriptor for the pipe to the runloop?
(I'm pretty sure under the hood the app must be running select/kqueue/poll/whatever to receive it's events, so it should just be a matter of getting the FD to that call, but I can't find relevant information on what the right API call is.)