standard.lib.thread.seminit

seminit is available since version 1.0.

Prototype:

null-return seminit(number sem, number val)

Parameters

sem
a semaphore handle as returned by semcreate
val
the semaphore value

Description:

Create and initialize a semaphore, with an empty wait queue, and couter=' val' .

Return value:

Returns null.