|
Zth (libzth)
|
#include <libzth/macros.h>#include <libzth/sync.h>#include <libzth/time.h>#include <future>#include <stdexcept>#include <type_traits>Go to the source code of this file.
Classes | |
| struct | zth::type< T > |
| class | zth::impl::std_shared_future_base< T > |
| class | zth::impl::std_future_base< T > |
| class | zth::impl::std_promise_base< T > |
Namespaces | |
| namespace | zth |
| namespace | zth::impl |
| namespace | std |
| STL namespace. | |
Typedefs | |
| template<typename T > | |
| using | zth::promise = ::std::promise< zth::type< T > > |
| template<typename T > | |
| using | zth::future = ::std::future< zth::type< T > > |
| template<typename T > | |
| using | zth::shared_future = ::std::shared_future< zth::type< T > > |
| template<typename Func , typename... Args> | |
| using | zth::impl::invoke_result = typename std::invoke_result_t< Func, Args... > |
Enumerations | |
| enum class | zth::launch { zth::detached = 1 , zth::awaitable = 2 } |
Functions | |
| template<typename Func , typename... Args> | |
| zth::future< zth::impl::invoke_result< Func, Args... > > | zth::async (Func &&f, Args &&... args) |
| template<typename Func , typename... Args> | |
| zth::future< zth::impl::invoke_result< Func, Args... > > | zth::async (zth::launch policy, Func &&f, Args &&... args) |
| template<typename Func , typename... Args> | |
| zth::future< zth::impl::invoke_result< Func, Args... > > | std::async (zth::launch policy, Func &&f, Args &&... args) |