开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜