core/container/pool
container_pool
Types
1Constants
4Procedures
14_get_next
_get_next :: proc(p: ^Pool($T), elem: ^T) -> (^T)Source_poison_elem
_poison_elem :: proc(p: ^Pool($T), elem: ^T)Source_pool_arena_allocator
_pool_arena_allocator :: proc(arena: ^Pool_Arena) -> (runtime.Allocator)Source_pool_arena_destroy
_pool_arena_destroy :: proc(arena: ^Pool_Arena)Source_pool_arena_init
_pool_arena_init :: proc(arena: ^Pool_Arena, block_size: uint) -> (err: runtime.Allocator_Error)Source_set_next
_set_next :: proc(p: ^Pool($T), elem: ^T, next: ^T)Source_unpoison_elem
_unpoison_elem :: proc(p: ^Pool($T), elem: ^T)Sourcecap
cap :: proc(p: ^Pool($T)) -> (int)Sourcedestroy
destroy :: proc(p: ^Pool($T))Sourceget
get :: proc(p: ^Pool($T)) -> (elem: ^T, err: runtime.Allocator_Error)Sourceinit
init :: proc(p: ^Pool($T), link_field: string, block_size: uint) -> (err: runtime.Allocator_Error)Sourcenum_outstanding
num_outstanding :: proc(p: ^Pool($T)) -> (int)Sourcenum_ready
num_ready :: proc(p: ^Pool($T)) -> (int)Sourceput
put :: proc(p: ^Pool($T), elem: ^T)Source