thread_call_enter_delayed
Submit a thread call to be executed at some point in the future.
Declaration
boolean_t thread_call_enter_delayed(thread_call_t call, uint64_t deadline);Parameters
- call:
The thread call to execute.
- deadline:
Time, in absolute time units, at which to execute callback.
Return Value
TRUE if the call was already pending for either delayed or immediate execution, FALSE otherwise.
Discussion
If the work item is already scheduled for delayed or immediate execution, and it has not yet begun to run, that invocation will be cancelled in favor of execution at the newly specified time. Note that if a thread call is rescheduled from its own callback, then multiple invocations of the callback may be in flight at the same time.
See Also
Thread
current_threadthread_abortthread_abort_safelythread_assignthread_assign_defaultthread_blockthread_block_parameterthread_call_allocatethread_call_allocate_with_optionsthread_call_allocate_with_prioritythread_call_cancelthread_call_cancel_waitthread_call_enterthread_call_enter1thread_call_enter1_delayedthread_call_freethread_call_isactivethread_createthread_create_runningthread_deallocatethread_depress_abortthread_get_assignmentthread_get_exception_portsthread_get_mach_voucherthread_get_special_portthread_get_statethread_has_thread_namethread_infothread_policythread_policy_getthread_policy_setthread_referencethread_resumethread_samplethread_set_exception_portsthread_set_mach_voucherthread_set_policythread_set_special_portthread_set_statethread_set_thread_namethread_suspendthread_swap_exception_portsthread_swap_mach_voucherthread_terminatethread_tidthread_wakeup_primthread_wakeup_threadthread_wirethread_act_array_tthread_act_port_array_tthread_act_port_tthread_act_tthread_affinity_policy_tthread_array_tthread_background_policy_tthread_basic_info_tthread_call_func_tthread_call_options_tthread_call_param_tthread_call_tthread_commandthread_continue_tthread_delta_snapshot_v2thread_delta_snapshot_v3thread_extended_info_tthread_extended_policy_tthread_flavor_tmach_thread_flavor_tthread_group_flagsthread_group_snapshotthread_group_snapshot_v2thread_identifier_info_tthread_info_data_tthread_info_tthread_inspect_tthread_latency_qos_policy_tthread_latency_qos_tthread_policy_flavor_tthread_policy_tthread_port_array_tthread_port_tthread_precedence_policy_tthread_snapshotthread_snapshot_flagsthread_snapshot_v2thread_snapshot_v3thread_snapshot_v4thread_standard_policy_tthread_state_data_tthread_state_flavor_array_tthread_state_flavor_tthread_state_tthread_tthread_throughput_qos_policy_tthread_throughput_qos_tthread_time_constraint_policy_tthread_affinity_policy_data_tthread_background_policy_data_tthread_basic_info_data_tthread_extended_info_data_tthread_extended_policy_data_tthread_identifier_info_data_tthread_latency_qos_policy_data_tthread_precedence_policy_data_tthread_standard_policy_data_tthread_throughput_qos_policy_data_tthread_time_constraint_policy_data_tthread_turnstileinfo_tthread_waitinfo_tact_get_stateact_set_state