From b498a30128ee361b690bad251eee65c911ac35d4 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 23 Oct 2011 22:52:27 +0000 Subject: [PATCH] move the mutex creation to after the memory pool is created git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11467 d7cf8633-e32d-0410-b094-e92efae38249 --- zone.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zone.c b/zone.c index 87e71212..02920535 100644 --- a/zone.c +++ b/zone.c @@ -874,13 +874,13 @@ void Memory_Init (void) u.s = 0x100; mem_bigendian = u.b[0] != 0; - if (Thread_HasThreads()) - mem_mutex = Thread_CreateMutex(); - sentinel_seed = rand(); poolchain = NULL; tempmempool = Mem_AllocPool("Temporary Memory", POOLFLAG_TEMP, NULL); zonemempool = Mem_AllocPool("Zone", 0, NULL); + + if (Thread_HasThreads()) + mem_mutex = Thread_CreateMutex(); } void Memory_Shutdown (void) -- 2.39.2