Code polish
This commit is contained in:
parent
3f750b8f13
commit
167f6e67c7
|
@ -16,6 +16,7 @@
|
||||||
package dorkbox.objectPool.nonBlocking
|
package dorkbox.objectPool.nonBlocking
|
||||||
|
|
||||||
import dorkbox.objectPool.BoundedPoolObject
|
import dorkbox.objectPool.BoundedPoolObject
|
||||||
|
import dorkbox.objectPool.ObjectPool
|
||||||
import java.util.*
|
import java.util.*
|
||||||
import java.util.concurrent.atomic.*
|
import java.util.concurrent.atomic.*
|
||||||
|
|
||||||
|
@ -26,7 +27,7 @@ import java.util.concurrent.atomic.*
|
||||||
* The items added to pool will never expire or be automatically garbage collected.
|
* The items added to pool will never expire or be automatically garbage collected.
|
||||||
* The items not added back to the pool will be garbage collected
|
* The items not added back to the pool will be garbage collected
|
||||||
*
|
*
|
||||||
* See [ObjectPool.NonBlockingSoftReference] for pooled objects that will expire/GC as needed
|
* See [ObjectPool.nonBlockingSoftReference] for pooled objects that will expire/GC as needed
|
||||||
*
|
*
|
||||||
* @author dorkbox, llc; Abinav Janakiraman
|
* @author dorkbox, llc; Abinav Janakiraman
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -19,7 +19,6 @@ import dorkbox.objectPool.ObjectPool
|
||||||
import dorkbox.objectPool.Pool
|
import dorkbox.objectPool.Pool
|
||||||
import dorkbox.objectPool.PoolObject
|
import dorkbox.objectPool.PoolObject
|
||||||
import java.util.*
|
import java.util.*
|
||||||
import java.util.concurrent.ConcurrentLinkedQueue
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A non-blocking pool which will grow as much as needed. If the pool is empty, new objects will be created.
|
* A non-blocking pool which will grow as much as needed. If the pool is empty, new objects will be created.
|
||||||
|
|
|
@ -1,3 +1,19 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2022 dorkbox, llc
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
package dorkbox.objectPool.suspending
|
package dorkbox.objectPool.suspending
|
||||||
|
|
||||||
import kotlinx.coroutines.channels.Channel
|
import kotlinx.coroutines.channels.Channel
|
||||||
|
|
|
@ -1,3 +1,19 @@
|
||||||
|
/*
|
||||||
|
* Copyright 2022 dorkbox, llc
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
package dorkbox.objectPool.suspending
|
package dorkbox.objectPool.suspending
|
||||||
|
|
||||||
import java.util.Collection
|
import java.util.Collection
|
||||||
|
|
Loading…
Reference in New Issue