diff options
author | raczman <none@none> | 2009-06-15 09:07:51 +0200 |
---|---|---|
committer | raczman <none@none> | 2009-06-15 09:07:51 +0200 |
commit | 19225e8880b12bf3b72743ea253a94b52635a212 (patch) | |
tree | 6ad5d22134939c7bed0aa1d95d68f354241a5654 /src/game/Unit.cpp | |
parent | 98c8b762b7de97f89ce072e6bd8ace2b832d0742 (diff) |
Added basic support for multithreaded map updates using openmp standard.
Windows users need to install Platform SDK to use this feature,
linux users have everything they need in gcc.
Number of threads used to update world is set by confiuration file,
and can be changed dynamically without restarting core.
Thanks to megamage and Jeniczek for testing and helping out with this.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index e07b2aef98a..23cde7b2fc6 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -18,6 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include <omp.h> #include "Common.h" #include "Log.h" #include "Opcodes.h" |