[EMAIL PROTECTED] schrieb:
> I have an extension module that gets initialized multiple
> times because I am using threads.
> 
> How can this module access global state (not per-thread state) ?
> It needs to create a singleton.

The question is very unclear.

If you are after *not* initializing your module concurrently, why don't 
you just do it *once* before the threads are started? alternatively, you 
need to govern the initialization-code with a mutex - or anything similar.

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

Reply via email to