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

Detailed Description

Base class for all the asynchronous tasks (engine::Task, engine::SharedTask, engine::SharedTaskWithResult, engine::TaskWithResult, dist_lock::DistLockedTask, ...).

Definition in file task_base.hpp.

Go to the source code of this file.

#include <chrono>
#include <memory>
#include <string>
#include <boost/smart_ptr/intrusive_ptr.hpp>
#include <userver/engine/deadline.hpp>
#include <userver/engine/exception.hpp>
#include <userver/engine/task/cancel.hpp>
#include <userver/engine/task/task_processor_fwd.hpp>
+ Include dependency graph for task_base.hpp:
+ This graph shows which files directly or indirectly include this file:

Classes

class  engine::TaskBase
 Base class for all the asynchronous tasks (engine::Task, engine::SharedTask, engine::SharedTaskWithResult, engine::TaskWithResult, dist_lock::DistLockedTask, ...). More...
 

Namespaces

namespace  utils
 Utilities.
 
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.