From 5f48260c6af8a4e4b8f4263bfd03b97d7ac3a068 Mon Sep 17 00:00:00 2001 From: theraven Date: Tue, 24 Nov 2009 13:21:29 +0000 Subject: [PATCH] Made sure the ObjC mutex is created before it might first be used. --- init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.c b/init.c index a2ea6da..fccf37b 100644 --- a/init.c +++ b/init.c @@ -542,10 +542,10 @@ __objc_exec_class (Module_t module) if (! previous_constructors) { /* Initialize thread-safe system */ + INIT_LOCK(objc_runtime_mutex); __objc_init_thread_system (); __objc_sync_init(); __objc_runtime_threads_alive = 1; - INIT_LOCK(objc_runtime_mutex); __objc_init_selector_tables (); __objc_init_protocol_table ();