SEM_delete
2-374
C Interface
Syntax
SEM_delete(sem);
Parameters
SEM_Handle sem;
/* semaphore object handle */
Return Value
Void
Description
SEM_delete uses MEM_free to free the semaphore object referenced by
sem.
SEM_delete calls MEM_free to delete the SEM 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
❏
No tasks should be pending on sem when SEM_delete is called.
❏
SEM_delete cannot be called from a SWI or HWI.
❏
No check is performed to prevent SEM_delete from being used on a
statically-created object. If a program attempts to delete a
semaphore object that was created using Tconf, SYS_error is called.
See Also
SEM_delete
Delete a semaphore