Thread-safety in Cocos2d-iPhone?
- by Malax
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?