standard.lib.thread.semp

semp is available since version 1.0.

Prototype:

null-return seminit(number sem)

Parameters

sem
the semaphore handle as returned by semcreate

Description:

'P' Operation on the 'sem' semaphore';
its counter is decremented;
if counter < 0, then the calling task is moved to the wait queue.

Return value:

Returns null.