Class coro::pthread_spawn_promise¶
Class List > coro > pthread_spawn_promise
allows pthread_attr_t*
forco_await
operatorMore...
#include <pthread.h>
Inherited by the following classes: coro::pthread_detacher::promise_type, coro::pthread_joiner::promise_type
Public Attributes¶
Type | Name |
---|---|
pthread_t | tid = {} |
Public Functions¶
Type | Name |
---|---|
auto | await_transform (const pthread_attr_t * attr) noexcept co_await for pthread_attr_t __ |
auto | await_transform (pthread_attr_t * attr) noexcept |
decltype(auto) | await_transform (Awaitable && a) noexcept general co_await |
constexpr auto | initial_suspend () noexcept |
constexpr void | return_void () noexcept |
void | unhandled_exception () noexcept the activator is responsible for the exception handling |
Detailed Description¶
See also: pthread_create
See also: pthread_attr_t
The type wraps pthread_create
function. After spawn, it contains thread id of the brand-new thread.
Public Attributes Documentation¶
variable tid¶
pthread_t coro::pthread_spawn_promise::tid;
Public Functions Documentation¶
function await_transform [1/3]¶
inline auto coro::pthread_spawn_promise::await_transform (
const pthread_attr_t * attr
) noexcept
function await_transform [2/3]¶
inline auto coro::pthread_spawn_promise::await_transform (
pthread_attr_t * attr
) noexcept
function await_transform [3/3]¶
template<typename Awaitable typename Awaitable>
inline decltype(auto) coro::pthread_spawn_promise::await_transform (
Awaitable && a
) noexcept
function initial_suspend¶
inline constexpr auto coro::pthread_spawn_promise::initial_suspend () noexcept
function return_void¶
inline constexpr void coro::pthread_spawn_promise::return_void () noexcept
function unhandled_exception¶
inline void coro::pthread_spawn_promise::unhandled_exception () noexcept
The documentation for this class was generated from the following file interface/coroutine/pthread.h