Hi Jon,

Here's the changes you suggested. I'm now using poll() rather than
select() as discussed on Tuesday. The test reproducing multiple select()
on the same fd for the same operation that's working under poll is
included in mcs.diff.

This is contributed under MIT/X11

Cheers
-Tim

> -----Original Message-----
> From: Jonathan Pryor [mailto:jonpr...@vt.edu]
> Sent: 09 February 2009 14:08
> To: Tim Jenks
> Subject: RE: [Mono-dev] signal.c cross-thread access
> 
> On Mon, 2009-02-09 at 12:31 +0000, tim.je...@realtimeworlds.com wrote:
> > Here we can see one select is returning after the first char is sent
> to
> > the pipe (and reads 1 byte). The second char is then sent to the
> pipe,
> > but the second select() call does not unblock.
> >
> > I am assuming this is undefined behaviour when multiple threads
> select()
> > on the same fd for the same operation, although I cannot find any
> > documentation proving this.
> >
> > Having looked at epoll, this appears to be addressed.
> 
> Is there any other mechanism?  epoll(2) doesn't seem to be supported
on
> Mac OS X (at least, it's not listed at [0]).  Would poll(2) work?
> 
>  - Jon
> 
> [0]
http://developer.apple.com/documentation/Darwin/Reference/ManPages/
> 
> 
> 
> ____________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System

____________________________________________________________________
DISCLAIMER

This message and any attachments contain privileged and confidential 
information intended for the use of the addressee named above. If you are not 
the intended recipient of this message, you are hereby notified that any use, 
dissemination, distribution or reproduction of this message is prohibited. 
Please note that we cannot guarantee that this message or any attachment is 
virus free or that it has not been intercepted and amended. The views of the 
author may not necessarily reflect those of Realtime Worlds Ltd.

 

Realtime Worlds Ltd is registered in Scotland, number 225628. Registered 
Office: 152 West Marketgait, Dundee, DD1 1NJ.

Attachment: mcs.diff
Description: mcs.diff

Attachment: signal.c.diff
Description: signal.c.diff

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to