userver: userver/utils/threads.hpp File Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
threads.hpp File Reference

Your opinion will help to improve our service

Leave a feedback >

Detailed Description

Functions to work with OS threads.

Definition in file threads.hpp.

Go to the source code of this file.

Namespaces

namespace  utils
 Utilities.
 

Functions

bool utils::IsMainThread () noexcept
 
void utils::SetCurrentThreadIdleScheduling ()
 Set priority of the OS thread to IDLE (the lowest one)
 
void utils::SetCurrentThreadLowPriorityScheduling ()
 Set priority of the OS thread to low (but not the lowest one)