MCPcopy Create free account
hub / github.com/devld/go-drive / VMPool

Struct VMPool

script/pool.go:24–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24type VMPool struct {
25 base *VM
26 config VMPoolConfig
27 mu sync.Mutex
28 idle []idleVM
29 total int
30 closed bool
31 changed chan struct{}
32 stop chan struct{}
33 stopOnce sync.Once
34 cleaner sync.WaitGroup
35}
36
37func NewVMPool(baseVM *VM, config *VMPoolConfig) *VMPool {
38 validateVMPoolConfig(config)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected