diff options
author | rpj <rpj> | 2004-10-19 13:33:10 +0000 |
---|---|---|
committer | rpj <rpj> | 2004-10-19 13:33:10 +0000 |
commit | da041b8ec0cfb1a70146e7f16459282f518bded6 (patch) | |
tree | 0ca98d38a122da16847858dff5d9f1ff7e034a10 /sem_getvalue.c | |
parent | 8c8bcc5d1737002a9d153105c16b262d2e201efa (diff) |
sem_getvalue can now return number of waiters
Diffstat (limited to 'sem_getvalue.c')
-rw-r--r-- | sem_getvalue.c | 4 |
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 |