From 3366b59125c31edceef88f1147ca7962b9189d2a Mon Sep 17 00:00:00 2001 From: meep-eep Date: Sun, 2 Feb 2003 00:07:24 +0000 Subject: [PATCH] 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 --- sc2/src/starcon2.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sc2/src/starcon2.c b/sc2/src/starcon2.c index 9d654f767..25d15cd1e 100644 --- a/sc2/src/starcon2.c +++ b/sc2/src/starcon2.c @@ -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 ();