Function

os_activity_apply

Execute a block using a given activity object.

Declaration

void os_activity_apply(os_activity_t activity, os_block_t block);

Parameters

activity

An activity object.

You can alternatively pass one of the global activity constants, such as OS_ACTIVITY_NONE or OS_ACTIVITY_CURRENT.

block

The block to be executed within the context of the given activity.

See Also

Creating and Accessing Activities

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_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.