summaryrefslogtreecommitdiff
path: root/rt/aio_suspend.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-04-11 11:51:23 +0000
committerUlrich Drepper <drepper@redhat.com>1998-04-11 11:51:23 +0000
commit18de8c733f47eedd3ccb9705c2d3bb8464025588 (patch)
tree358674101936d87ef0756dfebf2072791bb5ed46 /rt/aio_suspend.c
parentb9337b6a58501fcbae612a86d4219a8db2c5c1ff (diff)
Update.
1998-04-11 Ulrich Drepper <drepper@cygnus.com> * rt/aio_suspend.c (aio_suspend): Use PTHREAD_COND_INITIALIZER instead of call to pthread_cond_init. * rt/lio_listio.c (lio_listio): Likewise. * rt/lio_listio64.c (lio_listio64): Likewise. * nis/nis_findserv.c: Include sys/socket.h.
Diffstat (limited to 'rt/aio_suspend.c')
-rw-r--r--rt/aio_suspend.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/rt/aio_suspend.c b/rt/aio_suspend.c
index ca16342a60..70c5e1a3ce 100644
--- a/rt/aio_suspend.c
+++ b/rt/aio_suspend.c
@@ -42,7 +42,7 @@ aio_suspend (list, nent, timeout)
{
struct waitlist waitlist[nent];
struct requestlist *requestlist[nent];
- pthread_cond_t cond;
+ pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
int cnt;
int result = 0;
int dummy;
@@ -74,9 +74,6 @@ aio_suspend (list, nent, timeout)
{
int oldstate;
- /* Initialize the conditional variable. */
- pthread_cond_init (&cond, NULL);
-
/* Since `pthread_cond_wait'/`pthread_cond_timedwait' are cancelation
points we must be careful. We added entries to the waiting lists
which we must remove. So defer cancelation for now. */