1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| #include <libaio-oracle/libaio-oracle.h> | int main(int argc, char *argv[]) | { | //preamble | aio_init(4); | | struct timespec timeout = {.tv_sec = 1L, .tv_nsec = 2L}; | int completed_count = 0; | struct aiocb64* list = 0; | aio_reap64( | &timeout, | 3, | &list, | 4, | &completed_count); | | struct timespec timeout_1 = {.tv_sec = 5L, .tv_nsec = 6L}; | aio_suspend64((struct aiocb64 const*const*)&list, 4, &timeout_1); //target call | return 0; | } |
|