[runtime] Fixed typo in previous commit, added sleep
authorAlexis Christoforides <alexis@thenull.net>
Tue, 12 May 2015 20:07:54 +0000 (16:07 -0400)
committerAlexis Christoforides <alexis@thenull.net>
Tue, 12 May 2015 20:07:54 +0000 (16:07 -0400)
mono/utils/mono-threads.c

index a372d2a3731d09686ad0c6ea8bcd5e15c7315293..71ad6fd95f3e12a64da029d8dc44d53044b80412 100644 (file)
@@ -493,7 +493,9 @@ mono_threads_attach_tools_thread (void)
        /* Must only be called once */
        g_assert (!mono_native_tls_get_value (thread_info_key));
        
-       while (mono_threads_inited) { }
+       while (!mono_threads_inited) { 
+               g_usleep (10);
+       }
 
        info = mono_thread_info_attach (&dummy);
        g_assert (info);