[pypy-dev] stackless over ctypes - threading
Hart's Antler
bhartsho at yahoo.com
Mon Apr 25 09:45:24 CEST 2011
Hi PyPy Devs,
I have an example of using a compiled Rpython extension module in Python using stackless (rcoroutines). From ctypes i can safely read the values of a shared-object (shared between CPython and RPython), but i can not in a thread-safe way set values on the shared object so that RPython can see them. I was wondering what is the best way to handle the thread locking.
http://pyppet.blogspot.com/2011/04/stackless-compiled-modules.html
thanks,
-brett
More information about the Pypy-dev
mailing list