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

rt/lio_listio.c

index 07c8d3e..e4d9729 100644 (file)
@@ -82,13 +82,10 @@ lio_listio (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