Update ocache ObjectLocker

This commit is contained in:
mcrakhman 2023-01-02 14:27:24 +01:00 committed by Mikhail Iudin
parent 54813ccdec
commit bb398cdb2a
No known key found for this signature in database
GPG Key ID: FAAAA8BAABDFF1C0

View File

@ -74,6 +74,7 @@ type Object interface {
} }
type ObjectLocker interface { type ObjectLocker interface {
Object
Locked() bool Locked() bool
} }
@ -87,9 +88,9 @@ type entry struct {
refCount uint32 refCount uint32
isClosing bool isClosing bool
load chan struct{} load chan struct{}
loadErr error loadErr error
value Object value Object
close chan struct{} close chan struct{}
} }
func (e *entry) locked() bool { func (e *entry) locked() bool {