release

open override fun release(): Int

Release this property while holding the current file lock.

NativeObject.release is synchronized on this object and subclasses may enter fileLock during cppDelete. Taking the file lock first keeps disposal ordered as file lock -> object monitor -> native delete.

Return

The new reference count.

Throws

if this property has already been released.