Function csem_trywait

Function Documentation

status_t csem_trywait(struct csem *sem)

Lock the semaphore only if it is currently available.

Otherwise, do nothing.

Parameters:

sem – The semaphore handle.

Returns:

status_t.