Are there anybody working on Windows Serialports Using Libev?

Marc Lehmann schmorp at schmorp.de
Tue Jul 3 10:57:54 CEST 2012


On Tue, Jul 03, 2012 at 01:21:24PM +0800, 邹涛 <radiocov at gmail.com> wrote:
> I have no idea to do this work.

I don't think it can be done, as windows doesn't have any kind of unified I/O
model as POSIX has.

Your best bet is to use an extra thread (the first thing that should come
to your mind on windows is: if it isn't obvious how to do it, it probably
needs to be done in a separate thread) and use e.g. an ev_async watcher to
wake up the event loop on events.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the libev mailing list