On 04/05/2011 10:29 PM, Dag Sverre Seljebotn wrote:
I've done a pretty major revision to the prange CEP, bringing in a lot
of the feedback.
Thread-private variables are now split in two cases:
i) The safe cases, which really require very little technical
knowledge -> automatically inferred
ii) As an advanced feature, unsafe cases that requires some knowledge
of threading -> must be explicitly declared
I think this split simplifies things a great deal.
I'm rather excited over this now; this could turn out to be a really
user-friendly and safe feature that would not only allow us to support
OpenMP-like threading, but be more convenient to use in a range of
common cases.
http://wiki.cython.org/enhancements/prange
<http://wiki.cython.org/enhancements/prange#preview>
As a digression: threadlocal(int)-variables could also be supported
elsewhere as syntax candy for the pythread.h Thread Local Storage, which
would work well for fast TLS for any kind of threads (e.g., when using
threading module).
Dag Sverre
(Sorry about the previous HTML-mail.)
_______________________________________________
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel