Posts: 1
Joined: Thu Mar 11, 2010 8:33 pm


Postby LaSaGa » Fri Mar 12, 2010 8:25 pm

Hi everyone, I'm programming a script for a while now and I just had the idea to use multithreads to enhance its performance, something that I haven't thought of before. However, while attempting to implement it, my code just won't compile. I actually based myself on the well working multithread exemple of the ExampleAIModule from BWAPI 2.6.1, who analyzes the map while the game is going on. However, in my case, I need the thread to have access to functions and variables of the ExampleAIModule class. I have tried to declare the prototype of the thread inside the ExampleAIModule class but I get some static access error while attempting to use funcions of the class in the thread. I have read documentation about multithreading on the web for two days now, but I couldn't find a solution for this specific problem. Would anyone have a very simple example on how to implement such a successful multithreading? By the way I noted that there was no multithread topic yet in the forum so I believe that it could help more people too!


Return to “BWAPI (wrappers in other languages / questions and announcements related to BWAPI itself)”

Who is online

Users browsing this forum: No registered users and 1 guest