set_source_tag


Description:

public void set_source_tag (void* source_tag)

Sets this's source tag.

You can use this to tag a task return value with a particular pointer (usually a pointer to the function doing the tagging) and then later check it using get_source_tag (or is_tagged) in the task's "finish" function, to figure out if the response came from a particular place.

Parameters:

this

the Task

source_tag

an opaque pointer indicating the source of this task