How do I run C++ and Boost::Python code in parallel without problems?
Eg in my game I'd want to execute Python code in parallel with C++ code; if the embedded Python interpreter's code executes a blocking loop, like while(True): pass, the C++ code would still be running and processing frames to render with its own loop.
I tried with boost::thread and std::thread but unless I joined these threads with the main thread the program would crash...
Any suggestions or examples?
 
     
     
    