Base constructor, all subclasses *have* to invoke this constructor. Otherwise the instance will be invalid on instantiation.
Pushes this refcounted object to the topmost auto release pool.
Returns whether this object is valid.
Releases a reference from a valid object.
Retains a reference to a valid object.
The current reference count of the object.
A reference counted class.
Reference counted classes in numem are manually reference counted, this means that you are responsible for managing synchronising retain and release calls.
Threadsafety: Threadsafety depends on whether the hookset used supports atomic operations; see numem.core.atomic.nu_atomic_supported. If unsupported, retain and release will not be threadsafe on their own, and should be wrapped in another synchronisation primitive.
Memorysafety: Once the reference count for a class reaches 0, it will be destructed and freed automatically. All references to the class after refcount reaches 0 will be invalid and should not be used. NuRefCounted.release returns a value which can be used to determine whether the destructor was invoked.