--- IO-AIO/AIO.xs 2006/10/23 23:48:31 1.63 +++ IO-AIO/AIO.xs 2006/10/23 23:54:41 1.64 @@ -209,9 +209,13 @@ while (nreqs) { aio_req req; +#if !(__x86 || __x86_64) /* safe without sempahore on this archs */ pthread_mutex_lock (&reslock); +#endif req = ress; +#if !(__x86 || __x86_64) /* safe without sempahore on this archs */ pthread_mutex_unlock (&reslock); +#endif if (req) return;