mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 09:32:38 +08:00
b648d0d41e
NOTE: FileUtils::getInstance()->fullPathForFilename isn't a threadsafe method, Image::initWithImageFile will call fullPathForFilename internally which may cause thread race issues. Therefore, we get the full path of file before going into task callback. So be careful of invoking any Cocos2d-x interface in a sub-thread.