File CGroup.cpp

namespace isolation

Functions

pid_t getCurrentTid()
void addCurrentThreadToTasks(const path &tasksPath)

Variables

static const std::string BASE_DIR = "/sys/fs/cgroup/"
static const std::string CG_CPU = "cpu"
static const std::vector<std::string> controllers = {CG_CPU}
static std::mutex groupMutex