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

Detailed Description

Utility functions that query and operate on the current task.

Definition in file current_task.hpp.

Go to the source code of this file.

#include <cstddef>
#include <cstdint>
#include <userver/engine/task/task_processor_fwd.hpp>
+ This graph shows which files directly or indirectly include this file:

Namespaces

namespace  engine
 Asynchronous engine primitives.
 
namespace  engine::current_task
 Namespace with functions to work with current task from within it.
 

Functions

bool engine::current_task::IsTaskProcessorThread () noexcept
 
TaskProcessor & engine::current_task::GetTaskProcessor ()
 Returns reference to the task processor executing the caller.
 
std::size_t engine::current_task::GetStackSize ()
 Returns task coroutine stack size.