How can I run C ++ and Boost :: Python code in parallel without problems?
For example, in my game I want to execute Python code in parallel with C ++ code; if the Python interpreter's built-in code executes a lock cycle, such as while(True): pass , C ++ code will still work and process frames for rendering with its own loop.
I tried with boost::thread and std::thread , but if I did not join these threads with the main thread, the program would work ...
Any suggestions or examples?
source share