From: Martin L. <mar...@ea...> - 2015-05-07 10:05:59
|
On Sun, May 03, 2015 at 05:47:02AM -0400, Cody P Schafer wrote: > > On Fri, May 1, 2015 at 7:35 AM, Martin Ling <mar...@ea...> wrote: > > > > What do you all think? > > It sounds fine to me. > > I suppose using OS specific impls rather than using libserialport's > generic event infra is to avoid the bit of overhead with using the > event infra? Well, mostly just to avoid the overhead in lines of code on the user side - it's a bit cumbersome to set up an event set just to wait for RX on a single port, as you noted. Anyway, I've now written an implementation of the function if you'd like to have a look / give it a try. It's completely untested as yet: https://github.com/martinling/libserialport/commit/dfa04ba100fffaf77d48c9a8201ae3d3fc97e9e2 Martin |