Bill Allombert on Sun, 17 Sep 2006 15:31:24 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: PARI_stack_limit


On Sat, Sep 16, 2006 at 06:36:05PM +0200, Bill Allombert wrote:
> On Sat, Sep 16, 2006 at 05:05:17PM +0200, Bernard Parisse wrote:
> > 
> > >
> > >But you run exactly one thread at once ?
> > >
> > currently, yes, but this could change in the future, when giac
> > will be thread-safe. If pari is not thread-safe, I will use a
> > mutex lock.
> 
> PARI is (more or less) thread-safe when compiled with --enable-tls but this 

Well, rather less than more if two threads use gp_read_str() at the same
time. I never actually tested gp_read_str()...

I will try to fix that.

Cheers,
Bill.