On 10/18/2010 5:22 PM, Christian Boos wrote:
...
However there is also a version which does not need any locks:
def maybe_init(self, compmgr, init=init, cls=new_class):
    if cls not in compmgr.components:
        if init:
            init(self)
        compmgr.components[cls] = self
    …



So this is exactly the same solution as the one I proposed for #8658; I suppose this validates it ;-)

Re-reading the #9418 ticket more closely, credits goes to rblank ;-)

-- Christian

--
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to trac-...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.

Reply via email to