[coop] Use mono_thread_info_usleep which transition to BLOCKING state
[mono.git] / mono / utils / mono-threads.c
index e677ada8457e84592b1d7a4c61273de6635e71f9..0e67cd6605386a4fbcef76cb17a51763e404303f 100644 (file)
@@ -540,7 +540,7 @@ mono_threads_attach_tools_thread (void)
        g_assert (!mono_native_tls_get_value (thread_info_key));
        
        while (!mono_threads_inited) { 
-               g_usleep (10);
+               mono_thread_info_usleep (10);
        }
 
        info = mono_thread_info_attach (&dummy);