LCK_delete
Application Program Interface
2-179
C Interface
Syntax
LCK_delete(lock);
Parameters
LCK_Handle lock;
/* lock handle */
Return Value
Void
Description
LCK_delete uses MEM_free to free the lock referenced by lock.
LCK_delete calls MEM_free to delete the LCK 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
❏
LCK_delete cannot be called from a SWI or HWI.
❏
No task should be awaiting ownership of the lock.
❏
No check is performed to prevent LCK_delete from being used on a
statically-created object. If a program attempts to delete a lock object
that was created using Tconf, SYS_error is called.
See Also
LCK_delete
Delete a resource lock