dg_sem_get_id(2) DG/UX R4.11MU05 dg_sem_get_id(2)
NAME
dgsemgetid - allocate a set of biniary semaphores
SYNOPSIS
int dgsemgetid (void)
DESCRIPTION
The dgsemgetid system call allocates a set of two binary
semaphores for the process. The base identifier of the semaphore set
is returned. If the process has already allocated a set of binary
semaphores, the original base identifier is returned.
Once allocated, a thread in the process is allowed to pend on any
semaphore in the set.
RETURN VALUE
base id A non-negative integer that identifies the base id of the
the semaphore set.
DIAGNOSTICS
The call always returns successfully.
SEE ALSO
dgsemreleaseid(2), dgsempend(2), dgsempost(2).
Licensed material--property of copyright holder(s)