muti thread issue

when the app begins to load. i hv a big xml file to load and parse. so i want to do it in worker thread. but all the cocos2d-x UI must be used in main thread. it seems the producer/consumer should be used in order to push task in the main thread.
is there any other solution or suggestion? thanks!

your post subject is the solution: read the XML in a different thread. This is about C++, it is not about cocos2dx at all :slight_smile: