Afforess
The White Wizard
C++ has no built in multithreading. (Well, the new standard coming out soon will, but that's irrelevant). Boost, which Civ4 uses, does. I looked up the boost docs for the version Civ4 is using, and you can bind functions to variables, and create a new thread, and use the functions with the new threads. But I could never get it to work fiddling around with the source. (I'd like the put the python calls in a separate thread, wherever they have no return value, to speed things up). I saw this example, but could not get it to work:
http://stackoverflow.com/questions/344101/multithreading-using-the-boost-library
Has anyone ever used the Boost Libraries to multithread, and had success?
http://stackoverflow.com/questions/344101/multithreading-using-the-boost-library
Has anyone ever used the Boost Libraries to multithread, and had success?