spe_gang_context_destroy

NAME

spe_gang_context_destroy - Destroy the specified gang context.

SYNOPSIS

#include <libspe2.h>

int spe_gang_context_destroy (spe_gang_context_ptr_t gang)

Parameters  
gang Specifies the gang context to be destroyed.

DESCRIPTION

Destroy the specified gang context and free any associated resources. Before you destroy a gang context, you must destroy all associated SPE contexts using spe_context_destroy.

RETURN VALUE

On success, 0 (zero) is returned.

EXIT STATUS

On error, -1 is returned and errno is set to indicate the error.

Possible errors include:

ESRCH The specified gang context is not valid.
EAGAIN The specified gang context cannot be destroyed at this time since it is in use.
EFAULT A runtime error of the underlying operating system service occurred.

SEE ALSO

spe_context_destroy(3); spe_gang_context_create(3)