IP_TaskCloseAsync

IP_TaskCloseAsync — closes queues and cleans up resources.

Syntax

#include <cogent.h>

int IP_TaskCloseAsync(IP_Task* task);

Arguments

task

A task pointer.

Returns

0 on success, or -1 on failure and errno is set.

Description

This function closes any open queues, either for reading or writing, associated with the task, and cleans up any associated resources. This may result in destroying the pulse used by the queue notification services.

See Also

Task Structures, IP_TaskInitAsync, IP_TaskSendAsync, IP_TaskWaitAsync