static boolean |
RefCnt.isLiveNonVolatile(RefCnt ref) |
Returns true if and only if the given reference counter is alive.
|
static int |
RefCnt.refCnt(RefCnt ref) |
Returns the current reference count of the given RefCnt instance with a load acquire semantic.
|
static boolean |
RefCnt.release(RefCnt ref) |
Decreases the reference count of the given RefCnt instance by 1.
|
static boolean |
RefCnt.release(RefCnt ref,
int decrement) |
Decreases the reference count of the given RefCnt instance by the specified decrement.
|
static void |
RefCnt.resetRefCnt(RefCnt ref) |
Resets the reference count of the given RefCnt instance to 1.
|
static void |
RefCnt.retain(RefCnt ref) |
Increases the reference count of the given RefCnt instance by 1.
|
static void |
RefCnt.retain(RefCnt ref,
int increment) |
Increases the reference count of the given RefCnt instance by the specified increment.
|
static void |
RefCnt.setRefCnt(RefCnt ref,
int refCnt) |
WARNING:
An unsafe operation that sets the reference count of the given RefCnt instance directly.
|