aclrtDestroyContext
Description
Destroys a context and cleans up the associated resources. Only the context created by the aclrtCreateContext call can be destroyed.
Prototype
aclError aclrtDestroyContext(aclrtContext context)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
context |
Input |
Context to destroy. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.
Parent topic: Context Management