~ubuntu-branches/ubuntu/precise/eglibc/precise

« back to all changes in this revision

Viewing changes to sysdeps/pthread/aio_suspend.c

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2011-10-04 17:48:26 UTC
  • mfrom: (216.1.23 oneiric)
  • Revision ID: package-import@ubuntu.com-20111004174826-2cyb9ewn3ucymlsx
Tags: 2.13-20ubuntu5
libc6-dev: Don't break the current {gnat,gcj}-4.4-base versons. LP: #853688.

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
  pthread_mutex_unlock (&__aio_requests_mutex);
93
93
}
94
94
 
95
 
#ifdef DONT_NEED_AIO_MISC_COND
96
 
static int
97
 
__attribute__ ((noinline))
98
 
do_aio_misc_wait(int *cntr, const struct timespec *timeout)
99
 
{
100
 
        int result = 0;
101
 
 
102
 
        AIO_MISC_WAIT(result, *cntr, timeout, 1);
103
 
 
104
 
        return result;
105
 
}
106
 
#endif
107
95
 
108
96
int
109
97
aio_suspend (list, nent, timeout)
181
169
      pthread_cleanup_push (cleanup, &clparam);
182
170
 
183
171
#ifdef DONT_NEED_AIO_MISC_COND
184
 
      result = do_aio_misc_wait(&cntr, timeout);
 
172
      AIO_MISC_WAIT (result, cntr, timeout, 1);
185
173
#else
186
174
      if (timeout == NULL)
187
175
        result = pthread_cond_wait (&cond, &__aio_requests_mutex);