userver: userver/engine/task/task_processor_fwd.hpp File Reference
Loading...
Searching...
No Matches
task_processor_fwd.hpp File Reference

Detailed Description

Manages tasks execution on OS threads.

Definition in file task_processor_fwd.hpp.

Go to the source code of this file.

#include <cstdint>
#include <functional>
+ This graph shows which files directly or indirectly include this file:

Namespaces

namespace  engine
 Asynchronous engine primitives.
 

Functions

std::size_t engine::GetQueueSize (const TaskProcessor &task_processor)
 Get approximate count of ready-to-run tasks on the task_processor
 
void engine::RegisterThreadStartedHook (std::function< void()>)
 Register a function that runs on all threads on task processor creation. Used for pre-initializing thread_local variables with heavy constructors (constructor that does blocking system calls, file access, ...):