libcopp  2.2.0
this_task.cpp
Go to the documentation of this file.
1 // Copyright 2023 owent
2 
3 #include <libcopp/utils/config/libcopp_build_features.h>
4 
5 #include <libcotask/this_task.h>
6 
7 LIBCOPP_COTASK_NAMESPACE_BEGIN
8 namespace this_task {
9 LIBCOPP_COTASK_API impl::task_impl *get_task() LIBCOPP_MACRO_NOEXCEPT { return impl::task_impl::this_task(); }
10 } // namespace this_task
11 LIBCOPP_COTASK_NAMESPACE_END
static LIBCOPP_COTASK_API task_impl * this_task()
Definition: task_impl.cpp:51
LIBCOPP_COTASK_API impl::task_impl * get_task() LIBCOPP_MACRO_NOEXCEPT
get current running task
Definition: this_task.cpp:9