Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions  Download package

externC void vsemaphid ( tsp00_Region VAR_ARRAY_REF  semaname,
tsp00_RegionId VAR_VALUE_REF  sid 
)

reserve a semaphore and get its semaphore identifier

The semaphores are a critical resource for the kernel. Each semaphore 'slot' inside the runtime is reserved only once and can never be freed again. The semaphore identifier is copied into the slot and the slot index is returned as semaphore identifier. This identifier must be used in subsequent calls to vbegexcl and vendexcl.

Parameters:
semaname [in] the 'non blank' semaphore identifier visible in show region
sid [out] the semaphore identifier
Returns:
none, but kernel will abort with vabort() if no more semaphores available


Generated by  Doxygen 1.6.0   Back to index