ReferenceCountUpdater

Common logic for {@link ReferenceCounted} implementations

Constructors

this
this()
Undocumented in source.

Members

Functions

initialValue
int initialValue()
Undocumented in source. Be warned that the author may not have intended to support it.
isLiveNonVolatile
bool isLiveNonVolatile(T instance)
Undocumented in source. Be warned that the author may not have intended to support it.
refCnt
int refCnt(T instance)
Undocumented in source. Be warned that the author may not have intended to support it.
release
bool release(T instance, int decrement)
Undocumented in source. Be warned that the author may not have intended to support it.
release
bool release(T instance)
Undocumented in source. Be warned that the author may not have intended to support it.
resetRefCnt
void resetRefCnt(T instance)

Resets the reference count to 1

retain
T retain(T instance)
Undocumented in source. Be warned that the author may not have intended to support it.
retain
T retain(T instance, int increment)
Undocumented in source. Be warned that the author may not have intended to support it.
setRefCnt
void setRefCnt(T instance, int refCnt)

An unsafe operation that sets the reference count directly

updater
AtomicIntegerFieldUpdater!(T, fieldName) updater()
Undocumented in source.

Meta