-extern boolean_t thread_call_cancel_wait(
- thread_call_t call);
-
- /*!
- @function thread_call_allocate
- @abstract Allocate a thread call to execute with default (high) priority.
- @discussion Allocates a thread call that will run with properties of
- THREAD_CALL_PRIORITY_HIGH, binding the first parameter to the callback.
- @param func Callback to invoke when thread call is scheduled.
- @param param0 First argument ot pass to callback.
- @result Thread call which can be passed to thread_call_enter variants.
- */
-extern thread_call_t thread_call_allocate(
- thread_call_func_t func,
- thread_call_param_t param0);
-
- /*!
- @function thread_call_allocate_with_priority
- @abstract Allocate a thread call to execute with a specified priority.
- @discussion Identical to thread_call_allocate, except that priority
- is specified by caller.
- @param func Callback to invoke when thread call is scheduled.
- @param param0 First argument to pass to callback.
- @param pri Priority of item.
- @result Thread call which can be passed to thread_call_enter variants.
- */
-extern thread_call_t thread_call_allocate_with_priority(
- thread_call_func_t func,
- thread_call_param_t param0,
- thread_call_priority_t pri);
-
- /*!
- @function thread_call_allocate_with_options
- @abstract Allocate a thread call to execute with a specified priority.
- @discussion Identical to thread_call_allocate, except that priority
- and options are specified by caller.
- @param func Callback to invoke when thread call is scheduled.
- @param param0 First argument to pass to callback.
- @param pri Priority of item.
- @param options Options for item.
- @result Thread call which can be passed to thread_call_enter variants.
- */
-extern thread_call_t thread_call_allocate_with_options(
- thread_call_func_t func,
- thread_call_param_t param0,
- thread_call_priority_t pri,
- thread_call_options_t options);