spe_gang_context_destroy - Destroy the specified gang context.
#include <libspe2.h>
int spe_gang_context_destroy (spe_gang_context_ptr_t gang)
Parameters | |
gang | Specifies the gang context to be destroyed. |
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.
On success, 0 (zero) is returned.
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. |