We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e8a4323 + 640c206 commit 38b9b00Copy full SHA for 38b9b00
v2/manager.go
@@ -336,6 +336,14 @@ func (c *Manager) AddProc(pid uint64) error {
336
return writeValues(c.path, []Value{v})
337
}
338
339
+func (c *Manager) AddThread(tid uint64) error {
340
+ v := Value{
341
+ filename: cgroupThreads,
342
+ value: tid,
343
+ }
344
+ return writeValues(c.path, []Value{v})
345
+}
346
+
347
func (c *Manager) Delete() error {
348
return remove(c.path)
349
v2/utils.go
@@ -37,6 +37,7 @@ import (
37
38
const (
39
cgroupProcs = "cgroup.procs"
40
+ cgroupThreads = "cgroup.threads"
41
defaultDirPerm = 0755
42
)
43
0 commit comments