Page MenuHome

Cleanup: Correct order of guard and lock in moviecache_valfree
ClosedPublic

Authored by Jesse Yurkovich (deadpin) on Nov 5 2021, 6:13 AM.

Details

Summary

Fix own mistake in rB7061d1e39fe

In my attempt to quickly address T92838, along with the original bug, I
made a nonsensical choice to use the limiter lock to guard the check
against the cache item itself. While harmless, it is not necessary and
semantically wrong / potentially confusing to future readers of the code.

Diff Detail

Repository
rB Blender

Event Timeline

Jesse Yurkovich (deadpin) requested review of this revision.Nov 5 2021, 6:13 AM
Jesse Yurkovich (deadpin) created this revision.

Reading the conversation in the report, I think this is fine to just commit. The logic is obvious too, unless I'm crazy.

This revision is now accepted and ready to land.Nov 10 2021, 9:25 PM

whoops, let this one slip through the cracks, sorry!