diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-05-23 09:27:35 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-05-23 09:27:35 +0000 |
commit | 0a51738ed9721654a75f22c0cf016f1df0eb905b (patch) | |
tree | 4678cd82d63426d19edd9a6f83ba94073944ab05 | |
parent | 4a8cdfd14683d9488daf9884dc58c60953bda09f (diff) | |
download | glibc-0a51738ed9721654a75f22c0cf016f1df0eb905b.zip glibc-0a51738ed9721654a75f22c0cf016f1df0eb905b.tar.gz glibc-0a51738ed9721654a75f22c0cf016f1df0eb905b.tar.bz2 |
Correct example.
-rw-r--r-- | linuxthreads/linuxthreads.texi | 2 | ||||
-rw-r--r-- | linuxthreads/man/pthread_cond_init.man | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/linuxthreads/linuxthreads.texi b/linuxthreads/linuxthreads.texi index 63657eb..7a98103 100644 --- a/linuxthreads/linuxthreads.texi +++ b/linuxthreads/linuxthreads.texi @@ -858,7 +858,7 @@ Modifications on @var{x} and @var{y} that may cause @var{x} to become greater th @smallexample pthread_mutex_lock(&mut); /* modify x and y */ -if (x > y) pthread_mutex_broadcast(&cond); +if (x > y) pthread_cond_broadcast(&cond); pthread_mutex_unlock(&mut); @end smallexample diff --git a/linuxthreads/man/pthread_cond_init.man b/linuxthreads/man/pthread_cond_init.man index b803f08..4913062 100644 --- a/linuxthreads/man/pthread_cond_init.man +++ b/linuxthreads/man/pthread_cond_init.man @@ -76,7 +76,7 @@ and the time it waits on the condition variable. |cond|, as !pthread_cond_wait! does, but it also bounds the duration of the wait. If |cond| has not been signaled within the amount of time specified by |abstime|, the mutex |mutex| is re-acquired and -!pthread_cond_timedwait! returns the error !ETIMEDOUT!. +!pthread_cond_timedwait! returns the error !ETIMEDOUT!. The |abstime| parameter specifies an absolute time, with the same origin as !time!(2) and !gettimeofday!(2): an |abstime| of 0 corresponds to 00:00:00 GMT, January 1, 1970. @@ -190,7 +190,7 @@ Modifications on |x| and |y| that may cause |x| to become greater than .sp pthread_mutex_lock(&mut); /* modify x and y */ -if (x > y) pthread_mutex_broadcast(&cond); +if (x > y) pthread_cond_broadcast(&cond); pthread_mutex_unlock(&mut); .ft .LP @@ -232,4 +232,3 @@ pthread_mutex_unlock(&mut); .LP .RE .fi - |