SharedResource

@ThreadSafe
abstract class SharedResource(source)

A thread-safe reference-counted resource. The resource starts with a retain count of 1. Each call to retain increments the count; each call to release decrements it. When the count reaches zero, onReleased is invoked exactly once.

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
fun release()
Link copied to clipboard
fun retain()