summaryrefslogtreecommitdiff
path: root/apps/examples/ostest
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-10-09 08:34:49 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-10-09 08:34:49 -0600
commitf84e9959eb40561c87942fea3a75a6d936d17bda (patch)
tree3889e821dcd48f8947e6b4c3603cb37bc72e0670 /apps/examples/ostest
parent4876dd78d8a3e9c358d9e3910a8ed3276cb11bc1 (diff)
downloadnuttx-f84e9959eb40561c87942fea3a75a6d936d17bda.tar.gz
nuttx-f84e9959eb40561c87942fea3a75a6d936d17bda.tar.bz2
nuttx-f84e9959eb40561c87942fea3a75a6d936d17bda.zip
Trivial AIO-related changes
Diffstat (limited to 'apps/examples/ostest')
-rw-r--r--apps/examples/ostest/aio.c18
1 files changed, 9 insertions, 9 deletions
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);