[PATCH 1/3] Use cache for base repo if possible

Brian C. Lane bcl at redhat.com
Tue Oct 22 15:21:16 UTC 2013


On Tue, Oct 22, 2013 at 09:16:04AM +0200, Vratislav Podzimek wrote:
> > 
> > Why not just use self._cached_base_repo? I don't see any reason to
> > assign it to current_cached.
> That's because the I want to get the value while having the lock and
> then release it. In case there is some other thread racing with the
> current one, callbacks will be called with the value the current thread
> has determined even if some other thread messes it up in the meantime.

Ah! Right, those are inside locking blocks. Thanks for the explanation.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)


More information about the anaconda-patches mailing list