cgroups: add TODO before NewCgroupManager()

Signed-off-by: Andrey Vagin <avagin@openvz.org>
This commit is contained in:
Andrey Vagin 2015-01-14 19:48:25 +03:00 committed by Andrew Vagin
parent 4eaff5e14e
commit 6334be0ac5
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,9 @@ import (
) )
// Create a new cgroup manager with specified configuration // Create a new cgroup manager with specified configuration
// TODO this object is not really initialized until Apply() is called.
// Maybe make this to the equivalent of Apply() at some point?
// @vmarmol
func NewCgroupManager(cgroups *cgroups.Cgroup) cgroups.Manager { func NewCgroupManager(cgroups *cgroups.Cgroup) cgroups.Manager {
if systemd.UseSystemd() { if systemd.UseSystemd() {
return &systemd.Manager{ return &systemd.Manager{