This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]