Re: Fix signal handler

2012-09-24 Thread SF Markus Elfring
> Can you elaborate on why not? Yes, of course. I find that the information "ev_feed_signal ... safe to call this function ..., including signal handlers or random threads." is not satisfied by the current implementation at the moment. Reasons: 1. A shared array is used there. 2. Would it eventua

Re: Fix signal handler

2012-09-24 Thread Marc Lehmann
On Mon, Sep 24, 2012 at 12:00:23PM +0200, SF Markus Elfring wrote: > I find that the information "ev_feed_signal ... safe to call this function > ..., > including signal handlers or random threads." is not satisfied by the current > implementation at the moment. > Reasons: > 1. A shared array is

Re: Fix signal handler

2012-09-24 Thread SF Markus Elfring
>> 1. A shared array is used there. > > And why would that not be safe? It is not guaranteed that it can be modified in an atomic way. > Nothing suggests otherwise. Race conditions are hard to diagnose, aren't they? Is it also a software challenge to agree on proper solutions for this implemen

Re: Fix signal handler

2012-09-24 Thread Marc Lehmann
On Mon, Sep 24, 2012 at 12:50:12PM +0200, SF Markus Elfring wrote: > > And why would that not be safe? > It is not guaranteed that it can be modified in an atomic way. Ok, I herewith guarantee it to you. Moreover, atomicity is not required for this variable for accesses to it to be race-free (bu

EV-4.11 on freebsd ia64 arch

2012-09-24 Thread Vladimir Timofeev
Hi! EV-4.11 fails to compile on freebsd on ia64 architecture ( http://pointyhat.freebsd.org/errorlogs/ia64-errorlogs/e.9.20120916093935/p5-EV-4.11,1.log ): In file included from EV.xs:35: libev/ev.c:941:3: error: #error "memory fences not defined for your architecture, please report" I have a pa

Re: EV-4.11 on freebsd ia64 arch

2012-09-24 Thread Zsbán Ambrus
On 9/24/12, Vladimir Timofeev wrote: > EV-4.11 fails to compile on freebsd on ia64 architecture ( > http://pointyhat.freebsd.org/errorlogs/ia64-errorlogs/e.9.20120916093935/p5-EV-4.11,1.log It appears to me that libev already has a similar patch, but that was added since the EV-4.11 release. It

Re: EV-4.11 on freebsd ia64 arch

2012-09-24 Thread Vladimir Timofeev
2012/9/24 Zsbán Ambrus : > On 9/24/12, Vladimir Timofeev wrote: >> EV-4.11 fails to compile on freebsd on ia64 architecture ( >> http://pointyhat.freebsd.org/errorlogs/ia64-errorlogs/e.9.20120916093935/p5-EV-4.11,1.log > > > It appears to me that libev already has a similar patch, but that was > a

Re: EV-4.11 on freebsd ia64 arch

2012-09-24 Thread Marc Lehmann
On Tue, Sep 25, 2012 at 12:36:21AM +0400, Vladimir Timofeev wrote: > Sorry, I had to look in the repository, but I did not. > Can I ask about any plans to release a new version of EV module with > updated libev to CPAN? It's long overdue, but unfortunately I can't tell you a release date. The CV