MCPcopy Create free account
hub / github.com/containerd/cgroups / Thaw

Method Thaw

cgroup1/cgroup.go:449–464  ·  view source on GitHub ↗

Thaw thaws out the cgroup and all the processes inside it

()

Source from the content-addressed store, hash-verified

447
448// Thaw thaws out the cgroup and all the processes inside it
449func (c *cgroup) Thaw() error {
450 c.mu.Lock()
451 defer c.mu.Unlock()
452 if c.err != nil {
453 return c.err
454 }
455 s := c.getSubsystem(Freezer)
456 if s == nil {
457 return ErrFreezerNotSupported
458 }
459 sp, err := c.path(Freezer)
460 if err != nil {
461 return err
462 }
463 return s.(*freezerController).Thaw(sp)
464}
465
466// OOMEventFD returns the memory cgroup's out of memory event fd that triggers
467// when processes inside the cgroup receive an oom event. Returns

Callers

nothing calls this directly

Calls 2

getSubsystemMethod · 0.95
ThawMethod · 0.65

Tested by

no test coverage detected