开发者

iPhone makecontext/swapcontext

开发者 https://www.devze.com 2023-04-06 08:39 出处:网络
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

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

精彩评论

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