[ace-users] question about ACE_Dev_Poll_Reactor::owner
eider.oliveira at gmail.com
Wed Jun 20 06:13:36 CDT 2007
The patch I sent to ace-bugs a couple weeks ago intends to make the
Dev_Poll_Reactor behave as the TP_Reactor in multi threaded
I'm adjusting it according to "ACE Software Development Guidelines"
and applying the Steven's suggestions before sending it again.
As it is now, I wouldn't say it will work accordingly. The same event
is sent simultaneously to several threads, possibly causing one of
- out of order event handling
- events being triggered without data to be read or to write
- two threads reading the same socket at the same time. This is
(almost) easily avoidable by using mutex inside your event handler,
but is not desirable in my opinion.
- the handle_input/handle_output methods being called after
handle_close, which is bad, as resources may have been freed at that
On 6/20/07, Douglas C. Schmidt <schmidt at dre.vanderbilt.edu> wrote:
> >Version: 5.5.8
> >host: windows xp sp2, suse linux enterprise server 9 sp2
> >compiler: vs.net 2003, gcc 3.3.3
> >about this function, the doc says:
> >there is no need to set the owner of the event loop for the
> >ACE_Dev_Poll_Reactor, multiple threads may invoke the event loop
> >simultaneously. As such, this method is a no-op.
> >My question is :
> > So ACE_Dev_Poll_Reactor::run_reactor_event_loop can be called
> >safely and rightly in multi threads ?
> Good question. Steve/Ossama/Eider, what's the scoop on this?
> Dr. Douglas C. Schmidt Professor and Associate Chair
> Electrical Engineering and Computer Science TEL: (615) 343-8197
> Vanderbilt University WEB: www.dre.vanderbilt.edu/~schmidt
> Nashville, TN 37203 NET: d.schmidt at vanderbilt.edu
More information about the Ace-users