Function

os_activity_get_active

Returns the stack of nested activities associated with the current thread.

Declaration

unsigned int os_activity_get_active(os_activity_id_t *entries, unsigned int *count);

Parameters

entries

A buffer sized to hold the the number of activities being requested.

count

The number of activities requested.

Return Value

The number of activities written to entries.

Discussion

Because activities can be nested, there can be more than one activity involved on the current thread.

This function should be used only by diagnostic tools for making additional determinations about a situation.

See Also

Creating and Accessing Activities

os_activity_apply

Execute a block using a given activity object.

os_activity_apply_f

Execute a given function with a provided activity.

os_activity_end

Ends the specified activity on the current thread.

Deprecated
os_activity_get_identifier

Returns the current activity identifier.

os_activity_scope_enter

Pushes the current execution context to use the provided activity.

os_activity_scope_leave

Pops the current execution context.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software