Andrés Tremols schrieb:
Alright, answering myself.. I found that set_atomic(True) can make
blocked tasklets run after unpickling. Wonder what would be the optimal
way use it as probably it involves a performance penalty.
2009/1/30 Andrés Tremols <[email protected] <mailto:[email protected]>>
Hello,
After experimenting for a while with stackless I found that I can't
insert back into the scheduler tasklets that were blocked at the
moment of pickling, I wonder if there is a way around this
restriction as for my purposes I need the network of running
tasklets to be restored (unpickled) even if some of them are
blocked. Any ideas welcome.
I'm wondering:
If your tasklet is blocked, then it must be in a channel.
But then this channel should get pickled as well, and the
preferred(tm) way to unblock such a tasklet is to reactivate
them via the channel they are blocking on.
This is the theory, but I might be missing something.
cheers - chris
--
Christian Tismer :^) <mailto:[email protected]>
tismerysoft GmbH : Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9A : *Starship* http://starship.python.net/
14109 Berlin : PGP key -> http://wwwkeys.pgp.net/
work +49 30 802 86 56 mobile +49 173 24 18 776 fax +49 30 80 90 57 05
PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04
whom do you want to sponsor today? http://www.stackless.com/
_______________________________________________
Stackless mailing list
[email protected]
http://www.stackless.com/mailman/listinfo/stackless