From f84e9959eb40561c87942fea3a75a6d936d17bda Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 9 Oct 2014 08:34:49 -0600 Subject: Trivial AIO-related changes --- apps/examples/ostest/aio.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'apps/examples/ostest') diff --git a/apps/examples/ostest/aio.c b/apps/examples/ostest/aio.c index 81db8440a..68b94228f 100644 --- a/apps/examples/ostest/aio.c +++ b/apps/examples/ostest/aio.c @@ -322,7 +322,7 @@ void aio_test(void) do { - sleep(1); + usleep(500*1000); ret = check_done(); } while (ret < 0); @@ -336,7 +336,7 @@ void aio_test(void) * task end of the last test case -- especially the dangling SIGPOLL. */ - sleep(1); + usleep(500*1000); printf("AIO test case 2: Use LIO_WAIT for transfer complete\n"); g_fildes = open(AIO_FILEPATH, O_RDWR|O_CREAT|O_TRUNC); @@ -370,7 +370,7 @@ void aio_test(void) * task end of the last test case -- especially the dangling SIGPOLL. */ - sleep(1); + usleep(500*1000); printf("AIO test case 3: Use aio_suspend for transfer complete\n"); g_fildes = open(AIO_FILEPATH, O_RDWR|O_CREAT|O_TRUNC); @@ -430,7 +430,7 @@ void aio_test(void) * task end of the last test case -- especially the dangling SIGPOLL. */ - sleep(1); + usleep(500*1000); printf("AIO test case 4: Use individual signals for transfer complete\n"); g_fildes = open(AIO_FILEPATH, O_RDWR|O_CREAT|O_TRUNC); @@ -488,7 +488,7 @@ void aio_test(void) * task end of the last test case -- especially the dangling SIGPOLL. */ - sleep(1); + usleep(500*1000); printf("AIO test case 5: Use list complete signal for transfer complete\n"); g_fildes = open(AIO_FILEPATH, O_RDWR|O_CREAT|O_TRUNC); @@ -546,7 +546,7 @@ void aio_test(void) * task end of the last test case -- especially the dangling SIGPOLL. */ - sleep(1); + usleep(500*1000); printf("AIO test case 6: Cancel I/O by AIO control block\n"); g_fildes = open(AIO_FILEPATH, O_RDWR|O_CREAT|O_TRUNC); @@ -575,7 +575,7 @@ void aio_test(void) do { - sleep(1); + usleep(500*1000); ret = check_done(); } while (ret < 0); @@ -589,7 +589,7 @@ void aio_test(void) * task end of the last test case -- especially the dangling SIGPOLL. */ - sleep(1); + usleep(500*1000); printf("AIO test case 7:Cancel I/O by file descriptor\n"); g_fildes = open(AIO_FILEPATH, O_RDWR|O_CREAT|O_TRUNC); @@ -618,7 +618,7 @@ void aio_test(void) do { - sleep(1); + usleep(500*1000); ret = check_done(); } while (ret < 0); -- cgit v1.2.3