mirror of git://sourceware.org/git/glibc.git
Correct example.
This commit is contained in:
parent
4a8cdfd146
commit
0a51738ed9
|
@ -858,7 +858,7 @@ Modifications on @var{x} and @var{y} that may cause @var{x} to become greater th
|
||||||
@smallexample
|
@smallexample
|
||||||
pthread_mutex_lock(&mut);
|
pthread_mutex_lock(&mut);
|
||||||
/* modify x and y */
|
/* modify x and y */
|
||||||
if (x > y) pthread_mutex_broadcast(&cond);
|
if (x > y) pthread_cond_broadcast(&cond);
|
||||||
pthread_mutex_unlock(&mut);
|
pthread_mutex_unlock(&mut);
|
||||||
@end smallexample
|
@end smallexample
|
||||||
|
|
||||||
|
|
|
@ -190,7 +190,7 @@ Modifications on |x| and |y| that may cause |x| to become greater than
|
||||||
.sp
|
.sp
|
||||||
pthread_mutex_lock(&mut);
|
pthread_mutex_lock(&mut);
|
||||||
/* modify x and y */
|
/* modify x and y */
|
||||||
if (x > y) pthread_mutex_broadcast(&cond);
|
if (x > y) pthread_cond_broadcast(&cond);
|
||||||
pthread_mutex_unlock(&mut);
|
pthread_mutex_unlock(&mut);
|
||||||
.ft
|
.ft
|
||||||
.LP
|
.LP
|
||||||
|
@ -232,4 +232,3 @@ pthread_mutex_unlock(&mut);
|
||||||
.LP
|
.LP
|
||||||
.RE
|
.RE
|
||||||
.fi
|
.fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue