I've created a simple HelloWorld app and wanted to try out threading. I found:
I pasted the code into HelloWorldScene.cpp but VS is complaining that it does not find the pthread include file.
Can you please tell me which file I need to include to get the pthread includes?
I can't find it anywhere within the cocos installation - using cocos2d-x 3.14.1.
I also found a post explaining to use std::thread instead - that it is more portable. Why? On which platforms will pthread cause problems? Are there some 'cocos' threads (beside pthreads) I can/should use?