[ace-users] FW: Trying to adding an ACE_TTY_IO handler to the reactor.
Kim J. Schmock
KJS at capres.com
Fri Jun 15 07:25:55 CDT 2007
Thx
That solved the issue.
I was just wondering why handle_signal() are called rapidly. Shouldn't
it preempt the application until a character arrives at the COM1?
It seems like it is polling, or maybe reacting on an event related to
the handle for the COM1 port.
/Kim
> -----Original Message-----
> From: schmidt at dre.vanderbilt.edu [mailto:schmidt at dre.vanderbilt.edu]
> Sent: 15. juni 2007 13:28
> To: Kim J. Schmock; ace-users at cse.wustl.edu
> Subject: Re: [ace-users] Trying to adding an ACE_TTY_IO handler to the
> reactor.
>
>
> Hi Kim,
>
> Thanks very much for your email. Please make sure to send all
> questions related to TAO or ACE to the ACE mailing list or ACE+TAO
> newsgroup.
>
> > I now changed the used register_handler() to your suggestion. It
now
> > runs, but never handle the incoming RS232 events. I put a
breakpoint
> > in Rs232Handler::handle_input( ACE_HANDLE ), and it never stops
there.
>
> Right, that's correct - handle_input() isn't supposed to get called in
> this caes. Here's a snippet of the documentation I sent you that
> explains how things work:
>
> /**
> * Register handler for OS events.
> *
> * Register an <event_handler> that will be notified when
> * <event_handle> is signaled. This will call back its
> * <handle_signal> hook method.
>
> Please see Chapter 4 of C++NPv2 <www.cs.wustl.edu/~schmidt/ACE/book2/>
> for more details and examples.
>
> Thanks,
>
> Doug
More information about the Ace-users
mailing list