]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/thread_act.c
xnu-2422.1.72.tar.gz
[apple/xnu.git] / osfmk / kern / thread_act.c
index d99ee186c07c9082add778e62c6f1d428385e2ac..0f2a4dc3ae18e203e82518ba27206a088cc4f71e 100644 (file)
@@ -238,7 +238,7 @@ thread_suspend(
        thread_mtx_unlock(thread);
 
        if (thread != self && result == KERN_SUCCESS)
-               thread_wait(thread, TRUE);
+               thread_wait(thread, FALSE);
 
        return (result);
 }
@@ -434,7 +434,7 @@ thread_get_state(
 
                        thread_mtx_unlock(thread);
 
-                       if (thread_stop(thread)) {
+                       if (thread_stop(thread, FALSE)) {
                                thread_mtx_lock(thread);
                                result = machine_thread_get_state(
                                                                                thread, flavor, state, state_count);
@@ -484,7 +484,7 @@ thread_set_state_internal(
 
                        thread_mtx_unlock(thread);
 
-                       if (thread_stop(thread)) {
+                       if (thread_stop(thread, FALSE)) {
                                thread_mtx_lock(thread);
                                result = machine_thread_set_state(
                                                                                thread, flavor, state, state_count);
@@ -564,7 +564,7 @@ thread_state_initialize(
 
                        thread_mtx_unlock(thread);
 
-                       if (thread_stop(thread)) {
+                       if (thread_stop(thread, TRUE)) {
                                thread_mtx_lock(thread);
                                result = machine_thread_state_initialize( thread );
                                thread_unstop(thread);
@@ -605,7 +605,7 @@ thread_dup(
 
                thread_mtx_unlock(target);
 
-               if (thread_stop(target)) {
+               if (thread_stop(target, TRUE)) {
                        thread_mtx_lock(target);
                        result = machine_thread_dup(self, target);
                        if (self->affinity_set != AFFINITY_SET_NULL)