Skip to content
Commit 010d0293 authored by Marcel Wiesweg's avatar Marcel Wiesweg
Browse files

Reorder mutex locks - the ImageInfo ReadWriteLock must remain an "inner", transparent mutex.

It is called from a place where DatabaseAccess is locked, so DatabaseAccess must not be
locked from a place where the ImageInfo lock is held.
To reduce by one or two mutex locks, consolidate read operations at one place and
return the hash from a local variable which is in sync with the cached hash.
(note: we do not rule out a parallel operation between the DatabaseAccess and the
writing of the cached values. it's so far acceptable for a read cache.)

CCMAIL: mike@mghansen.de
BUG: 331578
parent cbc8e6b1
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