X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/3903760236c30e3b5ace7a4eefac3a269d68957c..743345f9a4b36f7e2f9ba37691e70c50baecb56e:/osfmk/kern/thread.h?ds=sidebyside diff --git a/osfmk/kern/thread.h b/osfmk/kern/thread.h index c27489677..368238042 100644 --- a/osfmk/kern/thread.h +++ b/osfmk/kern/thread.h @@ -621,6 +621,8 @@ extern void thread_release( extern void thread_corpse_continue(void); +extern boolean_t thread_is_active(thread_t thread); + /* Locking for scheduler state, always acquired with interrupts disabled (splsched()) */ #if __SMP__ #define thread_lock_init(th) simple_lock_init(&(th)->sched_lock, 0) @@ -846,6 +848,11 @@ extern kern_return_t thread_create_with_continuation( thread_t *new_thread, thread_continue_t continuation); +extern kern_return_t thread_create_waiting(task_t task, + thread_continue_t continuation, + event_t event, + thread_t *new_thread); + extern kern_return_t thread_create_workq( task_t task, thread_continue_t thread_return,