Skip to content

Need to replace thread unsafe code from TextureCache::addImageAsync #11887

Closed
@sbrednikhin

Description

@sbrednikhin

TextureCache::loadImage will be runnedin parallel thread by TextureCache::addImageAsync, but _textures.find() and _textures.end() used inside aren't thread-safe and there is no lock.

http://discuss.cocos2d-x.org/t/looks-like-texturecache-loadimage-is-not-thread-safe/21414

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions