userver: utils::ScopeTimePause Class 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
utils::ScopeTimePause Class Reference

#include <userver/utils/cpu_relax.hpp>

Detailed Description

Utility to easily pause ScopeTime, e.g. when yielding.

Definition at line 16 of file cpu_relax.hpp.

Public Member Functions

 ScopeTimePause (tracing::ScopeTime *scope)
 
void Pause ()
 Pause a ScopeTime, if any.
 
void Unpause ()
 Unpause the ScopeTime, if any.
 

The documentation for this class was generated from the following file: