toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-foundation
/
korlibs.datastructure
/
ConcurrentPool
Concurrent
Pool
open
class
ConcurrentPool
<
T
:
Any
>
(
reset
:
(
T
)
->
Unit
=
{}
,
preallocate
:
Int
=
0
,
gen
:
(
Int
)
->
T
)
:
Pool
<
T
>
Members
Constructors
Concurrent
Pool
Link copied to clipboard
constructor
(
reset
:
(
T
)
->
Unit
=
{}
,
preallocate
:
Int
=
0
,
gen
:
(
Int
)
->
T
)
Properties
items
In
Pool
Link copied to clipboard
val
itemsInPool
:
Int
total
Allocated
Items
Link copied to clipboard
val
totalAllocatedItems
:
Int
total
Items
In
Use
Link copied to clipboard
val
totalItemsInUse
:
Int
Functions
alloc
Link copied to clipboard
open
override
fun
alloc
(
)
:
T
inline
fun
<
R
>
alloc
(
callback
:
(
T
)
->
R
)
:
R
alloc2
Link copied to clipboard
inline
fun
<
R
>
alloc2
(
callback
:
(
T
,
T
)
->
R
)
:
R
alloc3
Link copied to clipboard
inline
fun
<
R
>
alloc3
(
callback
:
(
T
,
T
,
T
)
->
R
)
:
R
alloc
Multiple
Link copied to clipboard
inline
fun
<
R
>
allocMultiple
(
count
:
Int
,
temp
:
FastArrayList
<
T
>
=
FastArrayList()
,
callback
:
(
FastArrayList
<
T
>
)
->
R
)
:
R
alloc
This
Link copied to clipboard
inline
fun
<
R
>
allocThis
(
callback
:
T
.
(
)
->
R
)
:
R
clear
Link copied to clipboard
open
override
fun
clear
(
)
equals
Link copied to clipboard
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
free
Link copied to clipboard
open
override
fun
free
(
element
:
T
)
fun
free
(
vararg
elements
:
T
)
fun
free
(
elements
:
Iterable
<
T
>
)
fun
free
(
elements
:
List
<
T
>
)
free
Not
Null
Link copied to clipboard
fun
freeNotNull
(
element
:
T
?
)
hash
Code
Link copied to clipboard
open
override
fun
hashCode
(
)
:
Int
invoke
Link copied to clipboard
inline operator
fun
<
R
>
invoke
(
callback
:
(
T
)
->
R
)
:
R