View topic - asynchronous I/O timeouts

asynchronous I/O timeouts

For discussion of realtime and/or embedded programming.

asynchronous I/O timeouts

Postby rahil » Fri Jul 17, 2009 12:50 pm

In Windows, Timeout and the Overlapped structure can be used to associate the timeouts with the asynchronous IO operation.
Whereas in QNX, we can use the aiocb structure and aio_* APIs to accomplish the asynchronous communication.
aiocb seems to be a good substitute for the Overlapped structure.

But, does QNX provides timeout structure for the read/write operations?
So, that for every asynchronous read, that is queued using aio_read(), I can associate a conditional timeout.

QNX also provides conditional timeouts through the readcond() API, can this facility of readcond() be used for asynchronous communication as well?
Active Member
Posts: 75
Joined: Wed Feb 11, 2009 12:13 pm
Location: India

RE: asynchronous I/O timeouts

Postby mario » Fri Jul 17, 2009 1:35 pm

There is no timeout facilities for aio_* stuff, you have to roll up your own.

I stay away from async stuff altogether. It's all in the architecture.
QNX Master
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am

Return to Realtime and Embedded

Who is online

Users browsing this forum: No registered users and 6 guests