latch_post(S)
latch_post --
unlock a latch
Syntax
cc . . . -lsuds
#include <latch.h>
int latch_post(latch_t *latch);
Description
The latch_post function unlocks the latch referenced by
latch by performing the latch unlock operation on that
latch.
If any processes are blocked on the latch then the result of this
operation is to allow one of them to return successfully from its
call to
latch_wait(S).
Return values
Upon successful completion, the function returns zero. Otherwise it
returns -1 and sets errno to indicate the error.
Diagnostics
Errors returned are as for
sem_post(S).
See also
latch_close(S),
latch_getvalue(S),
latch_open(S),
latch_trywait(S),
latch_unlink(S),
latch_wait(S),
sem_post(S)
Standards conformance
latch_post is not part of any currently supported
standard; it is an extension of AT&T System V provided by
The Santa Cruz Operation, Inc.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003