[!DONT_USE_BOOTSTRAP_MAP] (__aio_notify): Use AIO_MISC_NOTIFY instead
authordrepper <drepper>
Fri, 6 Jan 2006 02:56:35 +0000 (02:56 +0000)
committerdrepper <drepper>
Fri, 6 Jan 2006 02:56:35 +0000 (02:56 +0000)
of pthread_cond_signal.

sysdeps/pthread/aio_notify.c

index 4d2611f..3f7f70e 100644 (file)
@@ -143,20 +143,24 @@ __aio_notify (struct requestlist *req)
     {
       struct waitlist *next = waitlist->next;
 
-      /* Decrement the counter.  This is used in both cases.  */
-      --*waitlist->counterp;
-
       if (waitlist->sigevp == NULL)
        {
          if (waitlist->result != NULL && aiocbp->__return_value == -1)
            *waitlist->result = -1;
 
+#ifdef DONT_NEED_AIO_MISC_COND
+         AIO_MISC_NOTIFY (waitlist);
+#else
+         /* Decrement the counter.  */
+         --*waitlist->counterp;
+
          pthread_cond_signal (waitlist->cond);
+#endif
        }
       else
        /* This is part of a asynchronous `lio_listio' operation.  If
           this request is the last one, send the signal.  */
-       if (*waitlist->counterp == 0)
+       if (--*waitlist->counterp == 0)
          {
 #ifdef BROKEN_THREAD_SIGNALS
            __aio_notify_only (waitlist->sigevp, waitlist->caller_pid);