SWI_delete
2-434
C Interface
Syntax
SWI_delete(swi);
Parameters
SWI_Handle swi;
/* SWI object handle */
Return Value
Void
Description
SWI_delete uses MEM_free to free the SWI object referenced by swi.
SWI_delete calls MEM_free to delete the SWI object. MEM_free must
acquire a lock to the memory before proceeding. If another task already
holds a lock to the memory, then there is a context switch.
Constraints and
Calling Context
❏
swi cannot be the currently executing SWI object (SWI_self)
❏
SWI_delete cannot be called from a SWI or HWI.
❏
SWI_delete must not be used to delete a statically-created SWI
object. No check is performed to prevent SWI_delete from being
used on a statically-created object. If a program attempts to delete a
SWI object that was created using Tconf, SYS_error is called.
See Also
SWI_create
SWI_getattrs
SWI_setattrs
SYS_error
SWI_delete
Delete a software interrupt