Merge pull request #1691 from esdrubal/exitevent
[mono.git] / mono / metadata / sgen-os-mach.c
index c7c1a9b6fb13494952e7ff944c495c7e7f337187..403d04c3d9a56f95560c27f08f8b55e2d0a0bdd9 100644 (file)
@@ -31,6 +31,7 @@
 #include "metadata/sgen-gc.h"
 #include "metadata/sgen-archdep.h"
 #include "metadata/sgen-protocol.h"
+#include "metadata/sgen-thread-pool.h"
 #include "metadata/object-internals.h"
 #include "metadata/gc-internal.h"
 
@@ -114,9 +115,12 @@ sgen_thread_handshake (BOOL suspend)
 
        int count = 0;
 
+       cur_thread->suspend_done = TRUE;
        FOREACH_THREAD_SAFE (info) {
-               if (info == cur_thread || sgen_is_worker_thread (mono_thread_info_get_tid (info)))
+               if (info == cur_thread || sgen_thread_pool_is_thread_pool_thread (mono_thread_info_get_tid (info)))
                        continue;
+
+               info->suspend_done = FALSE;
                if (info->gc_disabled)
                        continue;
 
@@ -143,5 +147,11 @@ mono_gc_get_suspend_signal (void)
 {
        return -1;
 }
+
+int
+mono_gc_get_restart_signal (void)
+{
+       return -1;
+}
 #endif
 #endif