getval
$
sem
->getval(
sem
)
Returns the current value of semaphore
sem
.