Function

os_activity_apply_f

Execute a given function with a provided activity.

Declaration

void os_activity_apply_f(os_activity_t activity, void *context, os_function_t function);

Parameters

activity

An activity object.

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

context

Context to pass to the function. This may be NULL.

function

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

See Also

Creating and Accessing Activities

os_activity_apply

Execute a block using a given activity object.

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.