sem_create


sem_create

Create a semaphore.

Signature

Status sem_create(
	Capref	sem,
	int	init_value )

Arguments

Semantics

sem_create creates a new semaphore and a capability for it. The capability is stored in a capability table visible to the calling loci.

Status

See Also

Capref