iPhone makecontext/swapcontext
I am trying to use makecontext()/swapcontext() to implement coroutines in开发者_C百科 my iPhone game. But those are deprecated. Is there any replacement function? Will my app be rejected by Apple if I use those functions even if it's deprecated?
As a warning to anyone attempting to use ucontexts for iOS: getcontext, setcontext, swapcontext, makecontext are now all stubbed out to return ENOTSUP, so do not work on current iOS (5.1).
http://www.opensource.apple.com/source/Libc/Libc-763.13/sys/context-stubs.c?txt
精彩评论