MCPcopy Create free account
hub / github.com/google/gapid / SetOnCreate

Method SetOnCreate

gapis/memory/pool.go:236–241  ·  view source on GitHub ↗

SetOnCreate sets the OnCreate callback and invokes it for every pool already created.

(onCreate func(PoolID, *Pool))

Source from the content-addressed store, hash-verified

234
235// SetOnCreate sets the OnCreate callback and invokes it for every pool already created.
236func (m *Pools) SetOnCreate(onCreate func(PoolID, *Pool)) {
237 m.OnCreate = onCreate
238 for i, p := range m.pools {
239 onCreate(i, p)
240 }
241}
242
243// String returns a string representation of all pools.
244func (m *Pools) String() string {

Callers 1

MemoryFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected