[sgen] Move `skip` and `in_critical_region` to Mono-specific code.
[mono.git] / mono / metadata / sgen-os-posix.c
index a80339a0389f7071a4263d4739b163dca52f1ae6..ef86a883820d6c1b29a712927f3589b8c833eac4 100644 (file)
@@ -203,12 +203,12 @@ sgen_thread_handshake (BOOL suspend)
        MonoNativeThreadId me = mono_native_thread_id_get ();
 
        count = 0;
-       mono_thread_info_current ()->suspend_done = TRUE;
+       mono_thread_info_current ()->client_info.suspend_done = TRUE;
        FOREACH_THREAD_SAFE (info) {
                if (mono_native_thread_id_equals (mono_thread_info_get_tid (info), me)) {
                        continue;
                }
-               info->suspend_done = FALSE;
+               info->client_info.suspend_done = FALSE;
                if (info->gc_disabled)
                        continue;
                /*if (signum == suspend_signal_num && info->stop_count == global_stop_count)
@@ -217,7 +217,7 @@ sgen_thread_handshake (BOOL suspend)
                if (result == 0) {
                        count++;
                } else {
-                       info->skip = 1;
+                       info->client_info.skip = 1;
                }
        } END_FOREACH_THREAD_SAFE