ThreadSchedule 3.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
cgroup.hpp File Reference

Linux cgroup thread attachment. More...

#include "native_thread.hpp"
#include <cerrno>
#include <fcntl.h>
#include <string>
#include <system_error>
#include <unistd.h>
Include dependency graph for cgroup.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  threadschedule
 
namespace  threadschedule::advanced
 

Functions

auto threadschedule::advanced::cgroup_attach_tid (std::string const &cgroup_dir, native_thread_id tid) -> result< void >
 Attach a native Linux thread ID to a cgroup v1 or v2 directory.
 

Detailed Description

Linux cgroup thread attachment.

Definition in file cgroup.hpp.