introspection.h
IntroductionInterposable introspection hooks for libdispatch. DiscussionThese hooks are only available in the introspection version of the library, loaded by running a process with the environment variable DYLD_LIBRARY_PATH=/usr/lib/system/introspection Functions
dispatch_introspection_hook_queue_callout_beginInterposable hook function called when a client function is about to be called out to on a dispatch queue. ( macos( 10.9), ios( 7.0)) void dispatch_introspection_hook_queue_callout_begin( dispatch_queue_t queue, void *_Nullable context, dispatch_function_t function); Parametersdispatch_introspection_hook_queue_callout_endInterposable hook function called after a client function has returned from a callout on a dispatch queue. ( macos( 10.9), ios( 7.0)) void dispatch_introspection_hook_queue_callout_end( dispatch_queue_t queue, void *_Nullable context, dispatch_function_t function); Parametersdispatch_introspection_hook_queue_createInterposable hook function called when a dispatch queue was created. ( macos( 10.9), ios( 7.0)) void dispatch_introspection_hook_queue_create( dispatch_queue_t queue); Parametersdispatch_introspection_hook_queue_destroyInterposable hook function called when a dispatch queue is about to be destroyed. ( macos( 10.9), ios( 7.0)) void dispatch_introspection_hook_queue_destroy( dispatch_queue_t queue); Parametersdispatch_introspection_hook_queue_item_completeInterposable hook function called when an item previously dequeued from a dispatch queue has completed processing. ( macos( 10.10), ios( 7.1)) void dispatch_introspection_hook_queue_item_complete( dispatch_object_t item); ParametersDiscussionThe object pointer value passed to this function must be treated as a value only. It is intended solely for matching up with an earlier call to a dequeue hook function and must NOT be dereferenced. dispatch_introspection_hook_queue_item_dequeueInterposable hook function called when an item was dequeued from a dispatch queue. ( macos( 10.9), ios( 7.0)) void dispatch_introspection_hook_queue_item_dequeue( dispatch_queue_t queue, dispatch_object_t item); Parametersdispatch_introspection_hook_queue_item_enqueueInterposable hook function called when an item is about to be enqueued onto a dispatch queue. ( macos( 10.9), ios( 7.0)) void dispatch_introspection_hook_queue_item_enqueue( dispatch_queue_t queue, dispatch_object_t item); Parameters |