This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
AIO operations on a serial device
- From: "Metuki Sabhe" <sabhe dot metuki at gmail dot com>
- To: libc-alpha at sourceware dot org
- Date: Sat, 23 Feb 2008 20:04:22 +0200
- Subject: AIO operations on a serial device
Hello,
I was wondering whether it is ok to use the aio_read/write API on a
serial device,
assuming I always have maximum one operation of a kind simultaneously
(will not call aio_read until previous aio_read operation was completed).
I guess I should always use aio_offset = 0 for that matter.
This sounds like a little tweaking, but is it ok ?
I have an application that I don't want to wait for the IO operation
to complete.
The other alternative is to use two worker threads, but that's a bit more code
than just using aio_ operations.
Thank you
metuki