Update ocache ObjectLocker
This commit is contained in:
parent
54813ccdec
commit
bb398cdb2a
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user