projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dc2fc6
)
(lio_listio64): Use PTHREAD_COND_INITIALIZER instead of call to
author
drepper
<drepper>
Sat, 11 Apr 1998 11:49:28 +0000
(11:49 +0000)
committer
drepper
<drepper>
Sat, 11 Apr 1998 11:49:28 +0000
(11:49 +0000)
pthread_cond_init.
rt/lio_listio64.c
patch
|
blob
|
history
diff --git
a/rt/lio_listio64.c
b/rt/lio_listio64.c
index
69b78b7
..
9cb1125
100644
(file)
--- a/
rt/lio_listio64.c
+++ b/
rt/lio_listio64.c
@@
-82,13
+82,10
@@
lio_listio64 (mode, list, nent, sig)
}
else if (mode == LIO_WAIT)
{
- pthread_cond_t cond;
+ pthread_cond_t cond
= PTHREAD_COND_INITIALIZER
;
struct waitlist waitlist[nent];
int oldstate;
- /* Initialize the conditional variable. */
- pthread_cond_init (&cond, NULL);
-
total = 0;
for (cnt = 0; cnt < nent; ++cnt)
if (list[cnt] != NULL && list[cnt]->aio_lio_opcode != LIO_NOP