You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2024/03/07 21:37:05 UTC

(mesos) branch master updated: [cgroups2] Add forward declarations for cgroups2::read and cgroups2::write

This is an automated email from the ASF dual-hosted git repository.

bmahler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git


The following commit(s) were added to refs/heads/master by this push:
     new cb1da562a [cgroups2] Add forward declarations for cgroups2::read and cgroups2::write
cb1da562a is described below

commit cb1da562a69af937a916108172d378d04d98dbac
Author: Devin Leamy <dl...@x.com>
AuthorDate: Thu Mar 7 16:36:52 2024 -0500

    [cgroups2] Add forward declarations for cgroups2::read and cgroups2::write
    
    Review: https://reviews.apache.org/r/74910/
---
 src/linux/cgroups2.cpp | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/linux/cgroups2.cpp b/src/linux/cgroups2.cpp
index eff44f11e..1adde0452 100644
--- a/src/linux/cgroups2.cpp
+++ b/src/linux/cgroups2.cpp
@@ -43,6 +43,14 @@ const string FILE_SYSTEM = "cgroup2";
 // Mount point for the cgroups2 file system.
 const string MOUNT_POINT = "/sys/fs/cgroup";
 
+// Forward declaration.
+Try<string> read(const string& cgroup, const string& control);
+
+// Forward declaration.
+Try<Nothing> write(
+  const string& cgroup,
+  const string& control,
+  const string& value);
 
 namespace control {