Lines Matching refs:sval
386 int sval; in semlock_release()
390 if (sem_getvalue(self->handle, &sval) < 0) { in semlock_release()
392 } else if (sval >= self->maxvalue) { in semlock_release()
543 int sval; in semlock_getvalue()
544 if (SEM_GETVALUE(self->handle, &sval) < 0) in semlock_getvalue()
548 if (sval < 0) in semlock_getvalue()
549 sval = 0; in semlock_getvalue()
550 return PyLong_FromLong((long)sval); in semlock_getvalue()
568 int sval; in semlock_iszero()
569 if (SEM_GETVALUE(self->handle, &sval) < 0) in semlock_iszero()
571 return PyBool_FromLong((long)sval == 0); in semlock_iszero()