(aio_suspend): Use PTHREAD_COND_INITIALIZER instead of call to
authordrepper <drepper>
Sat, 11 Apr 1998 11:50:11 +0000 (11:50 +0000)
committerdrepper <drepper>
Sat, 11 Apr 1998 11:50:11 +0000 (11:50 +0000)
pthread_cond_init.

rt/aio_suspend.c

index ca16342..70c5e1a 100644 (file)
@@ -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.  */