IP_TaskIntern

IP_TaskIntern — adds a task to a process's task cache.

Syntax

#include <cogent.h>

IP_Task* IP_TaskIntern(IP_Task* task);

Arguments

task

A pointer to a task structure.

Returns

Returns task on success, or NULL if there is already a matching task in the cache.

Description

This function causes the task to be added to the task cache for this process. If a task matching the nid, pid and chid of the task already exists in the cache, then the new task is not added to the cache, and NULL is returned.

See Also

Task Structure Caching, IP_TaskUnintern