summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpj <rpj>2004-10-19 13:33:10 +0000
committerrpj <rpj>2004-10-19 13:33:10 +0000
commitda041b8ec0cfb1a70146e7f16459282f518bded6 (patch)
tree0ca98d38a122da16847858dff5d9f1ff7e034a10
parent8c8bcc5d1737002a9d153105c16b262d2e201efa (diff)
sem_getvalue can now return number of waiters
-rw-r--r--sem_getvalue.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sem_getvalue.c b/sem_getvalue.c
index be80bea..eb6e6af 100644
--- a/sem_getvalue.c
+++ b/sem_getvalue.c
@@ -52,7 +52,9 @@ sem_getvalue (sem_t * sem, int *sval)
* ------------------------------------------------------
* DOCPUBLIC
* This function stores the current count value of the
- * semaphore.
+ * semaphore. If the count is negative, it's absolute
+ * value is the number of threads currently waiting on
+ * the semaphore.
* RESULTS
*
* Return value