LCK_post
2-182
C Interface
Syntax
LCK_post(lock);
Parameters
LCK_Handle lock;
/* lock handle */
Return Value
Void
Description
LCK_post relinquishes ownership of lock, and resumes execution of the
first task (if any) awaiting availability of the corresponding resource. If the
current task calls LCK_pend more than once with lock, ownership
remains with the current task until LCK_post is called an equal number of
times.
LCK_post results in a context switch if a higher priority thread is currently
pending on the lock.
Constraints and
Calling Context
❏
lock must be a handle for a resource lock object created through a
prior call to LCK_create.
❏
LCK_post should not be called from a SWI or HWI thread.
❏
LCK_post should not be called from main().
See Also
LCK_create
LCK_delete
LCK_pend
LCK_post
Relinquish ownership of a resource LCK