Function

os_activity_get_identifier

Returns the current activity identifier.

Declaration

os_activity_id_t os_activity_get_identifier(os_activity_t activity, os_activity_id_t *parent_id);

Parameters

activity

The activity to be identified.

parent_id

On return, contains the identifier of the parent of the returned activity, if any.

Return Value

The current activity identifier.

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_active

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

Deprecated
os_activity_scope_enter

Pushes the current execution context to use the provided activity.

os_activity_scope_leave

Pops the current execution context.