Initialise the thread system before the memory system.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@630 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2003-02-02 00:07:24 +00:00
parent 72322a330c
commit 3366b59125
+5 -1
View File
@@ -271,6 +271,11 @@ main (int argc, char *argv[])
}
}
/* InitThreadSystem should come before anything else.
* The memory system uses semaphores.
* Everything else uses the memory system.
*/
InitThreadSystem ();
mem_init ();
initTempDir();
@@ -279,7 +284,6 @@ main (int argc, char *argv[])
prepareMeleeDir();
prepareSaveDir();
InitThreadSystem ();
InitTimeSystem ();
InitTaskSystem ();