Artur Bergman wrote:

> But that is pretty easy to fix by using thread local storage (like perl does
> for the current perl-interpreter).

And how exactly will you do this for a third-party binary-only library?

> Maybe it would be possible to add a option to XS to automaticly add code to
> mutex protect an entire library. (This won't solve the problem with stored
> state, but my belief is it would help in most cases).

This is distinctly non-trivial.

Alan Burlison

Reply via email to