Thread-safety in Cocos2d-iPhone?
Posted
by
Malax
on Game Development
See other posts from Game Development
or by Malax
Published on 2012-04-13T08:14:23Z
Indexed on
2012/04/13
17:43 UTC
Read the original article
Hit count: 478
After tinkering a bit with cocos2d, I discovered that there is no classic game loop and everything is more-or-less event driven. I guess I can wrap my head around that, no problem.
But I cannot find anything about thread safety. Say, I schedule something to occur every two seconds, which Thread will run the code? Given that I cannot find anything about that, I guess there is just one Cocos2d Thread and everything will be fine.
Nevertheless, this implicit assumption does not give me a good feeling. Knowing is better than guessing. ;-)
Can anyone shed some light onto that topic?
© Game Development or respective owner