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:
+5
-1
@@ -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 ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user