libcopp  1.1.0
Functions
cotask::this_task Namespace Reference

Functions

impl::task_implget_task () UTIL_CONFIG_NOEXCEPT
 get current running task More...
 
template<typename Tt >
Tt * get ()
 get current running task and try to convert type More...
 

Function Documentation

template<typename Tt >
Tt* cotask::this_task::get ( )

get current running task and try to convert type

Returns
current running task or empty pointer when not in task or fail to convert type

Definition at line 31 of file this_task.h.

References get_task().

impl::task_impl * cotask::this_task::get_task ( )

get current running task

Returns
current running task or empty pointer when not in task

Definition at line 15 of file this_task.cpp.

References cotask::impl::task_impl::this_task().

Referenced by get(), and main().