I'm implementing async data exchange of background thread with main thread in nonblocking mode. Found out in Unix especially iOS can use for that sockets only (based on "Advanced Programming in the UNIX Environment" W. Richard Stevens Stephen A. Rago).
So in my iOS application main thread is UI and background thread (from std) generates some data. I've implemented all needed callback from boost::asio (async_accept, async_read etc.).
I've tried adding io_service.poll() in that thread, but it looks like all callbacks are being invoked from background thread.
And I think I need to integrate io_service.run() in NSRunLoop. How can I do that?
Thanks.