1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | herr_t
ss_aio_suspend(ss_aio_t UNUSED **aio, size_t UNUSED nreq)
{
SS_ENTER(ss_aio_suspend, herr_t);
#if defined(SSLIB_ASYNC_AIO)
if (aio_suspend(aio, (int)nreq, NULL)<0)
SS_ERROR_FMT(FAILED, ("aio_suspend failed: %s", strerror(errno)));
SS_CLEANUP:
#elif defined(SSLIB_ASYNC_THREADS)
size_t i;
for (i=0; i<nreq; i++) {
pthread_mutex_lock(&(aio[i]->in_progress));
pthread_mutex_unlock(&(aio[i]->in_progress));
}
#else
/* Nothing to do for faked async I/O */
#endif
SS_LEAVE(0);
}
|