On Mar 28, 11:14 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Fri, 28 Mar 2008 11:51:10 -0300, <[EMAIL PROTECTED]> escribió:
>
> > I have an extension module that gets initialized multiple
> > times because I am using threads.
>
> And do you want thread local variables?

no

>
> > 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.

Yes, but they get initialized once per-thread, therefore my singleton
gets
created multiple times.

Simon.

>
> --
> Gabriel Genellina

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to