DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

latch_post(S-osr5)


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-osr5).

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-osr5).

See also

latch_close(S-osr5), latch_getvalue(S-osr5), latch_open(S-osr5), latch_trywait(S-osr5), latch_unlink(S-osr5), latch_wait(S-osr5), sem_post(S-osr5)

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.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005