userver: userver/hostinfo/cpu_limit.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
cpu_limit.hpp File Reference

Information about CPU limits in container. More...

#include <optional>
+ Include dependency graph for cpu_limit.hpp:

Go to the source code of this file.

Namespaces

namespace  hostinfo
 Information about current host.
 

Functions

std::optional< double > hostinfo::CpuLimit ()
 Returns the CPU limit.
 
bool hostinfo::IsInRtc ()
 Returns true if the current process is run in container (CPU_LIMIT environment variable is set).
 

Detailed Description

Information about CPU limits in container.

Definition in file cpu_limit.hpp.