… | |
… | |
207 | fd_set rfd; |
207 | fd_set rfd; |
208 | |
208 | |
209 | while (nreqs) |
209 | while (nreqs) |
210 | { |
210 | { |
211 | aio_req req; |
211 | aio_req req; |
|
|
212 | #if !(__x86 || __x86_64) /* safe without sempahore on this archs */ |
212 | pthread_mutex_lock (&reslock); |
213 | pthread_mutex_lock (&reslock); |
|
|
214 | #endif |
213 | req = ress; |
215 | req = ress; |
|
|
216 | #if !(__x86 || __x86_64) /* safe without sempahore on this archs */ |
214 | pthread_mutex_unlock (&reslock); |
217 | pthread_mutex_unlock (&reslock); |
|
|
218 | #endif |
215 | |
219 | |
216 | if (req) |
220 | if (req) |
217 | return; |
221 | return; |
218 | |
222 | |
219 | FD_ZERO(&rfd); |
223 | FD_ZERO(&rfd); |