There's tasklet local storage support in Stacklesslib.  You can see it in
use in stacklesslib/replacements/threading.py.

http://pypi.python.org/pypi/stacklesslib

Note that the egg does not contain the full source.  You are better to go
with the zip or the windows installer.  I don't seem to be able to get eggs
to generate properly...

<http://pypi.python.org/pypi/stacklesslib>Cheers,
Richard.

On Wed, Jun 1, 2011 at 5:29 AM, Fernando Miranda <[email protected]>wrote:

> Hello people. I'm starting with Stackless so it's a whole new amazing
> world for me.
> I usually use regular threads, and they normally have Thread-local
> storage (TLS), which
> is a very useful feature when you need NOT share memory with other threads.
>
> So, I'm wondering if Stackless has something similar: A way to store
> local memory
> (a python object) for a given tasklet. Is that possible?
>
>
> Thanks in advance.
> -f
>
> _______________________________________________
> Stackless mailing list
> [email protected]
> http://www.stackless.com/mailman/listinfo/stackless
>
_______________________________________________
Stackless mailing list
[email protected]
http://www.stackless.com/mailman/listinfo/stackless

Reply via email to