ILimitable.setLimit

Sets the limit of number of items in pool or disables limitation for limit = unlimited. When limiting the pool, any excess idle items are reset and deleted.

interface ILimitable
size_t
setLimit
(
size_t limit
)

Parameters

limit size_t

new limit of number of items in pool; unlimited disables limitation

Return Value

Type: size_t

new limit

Meta