1. change the way to traverse files 2. refact some code Signed-off-by: ComixHe <heyuming@deepin.org> Signed-off-by: black-desk <me@black-desk.cn>
20 lines
405 B
C++
20 lines
405 B
C++
// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
|
|
//
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
#ifndef CGROUPSIDENTIFIER_H
|
|
#define CGROUPSIDENTIFIER_H
|
|
|
|
#include "identifier.h"
|
|
|
|
class CGroupsIdentifier : public Identifier
|
|
{
|
|
public:
|
|
IdentifyRet Identify(pid_t pid) override;
|
|
|
|
private:
|
|
[[nodiscard]] static QString parseCGroupsPath(const QString &CGP) noexcept;
|
|
};
|
|
|
|
#endif
|