Control group
New to the concept? See Tools — Pool first.
init
- Registers hooks.
- Called once after
new. - Assert:
- Hooks tags not empty, each tag not null.
- Pool not already closed.
close
- Can be called more than once.
- Collects all handles from all per-tag free-lists.
- Calls
on_closeonce with the full list. - Broadcasts to wake blocked
get_waitcallers.
destroy
- Frees the pool.
- Must be closed first.
- Calling destroy on an open pool is a programming error (panic).
is_it_you
- Returns true if tag identifies a *Pool.