Commit 1c7d9e4b authored by Arnaud Fontaine's avatar Arnaud Fontaine

Use a re-entrant lock for loading Dynamic Module (meaningful for Components).

parent 97b7da32
......@@ -12,7 +12,7 @@ class DynamicModule(ModuleType):
def __init__(self, name, factory, doc=None):
super(DynamicModule, self).__init__(name, doc=doc)
self._factory = factory
self._lock = threading.Lock()
self._lock = threading.RLock()
def __getattr__(self, name):
if name[:2] == '__':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment