Synchronized Pool
Kotlin/Native threads are real - decode workers and the render thread share these pools, so acquire/release must lock or two consumers can be handed the same pooled instance.
JS use BasicPool instead of SynchronizedPool
Functions
acquire
Link copied to clipboard
Acquires an instance from the pool. This returns null if the pool is empty.
Acquires an instance from the pool. This returns null if the pool is empty.
Acquires an instance from the pool. This returns null if the pool is empty.
release
Link copied to clipboard
Releases an instance to the pool. This has no effect if the instance is null.
Releases an instance to the pool. This has no effect if the instance is null.
Releases an instance to the pool. This has no effect if the instance is null.