threads and extension module initialization
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Fri Mar 28 11:14:30 EDT 2008
En Fri, 28 Mar 2008 11:51:10 -0300, <pianomaestro at gmail.com> escribió:
> I have an extension module that gets initialized multiple
> times because I am using threads.
And do you want thread local variables?
> How can this module access global state (not per-thread state) ?
> It needs to create a singleton.
C global variables are global, not per-thread.
--
Gabriel Genellina
More information about the Python-list
mailing list