libjmmcg
release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
|
#include <thread_params_traits.hpp>
Public Types | |
enum | creation_flags { create_running , create_suspended } |
enum | priority_type { lowest , idle , below_normal , normal , above_normal , highest , time_critical , unknown_priority } |
enum | states { no_kernel_thread =0 , suspended , active , cancelled , get_exit_code_failure , deadlocked_with_another_thread , invalid_thread , thread_id_not_found , failed_to_cancel , null_this_pointer , jmmcg_exception , stl_exception , unknown_exception , terminated , unknown } |
enum | thread_cancel_state { cancel_enable , cancel_disable } |
typedef int | stack_size_type |
typedef int | handle_type |
typedef int | pid_type |
typedef int | tid_type |
using | username_type = std::array< char, 256 > |
The size is a guess... More... | |
typedef int | processor_mask_type |
typedef int | suspend_count |
typedef int | suspend_period_ms |
typedef int | security_type |
typedef void | core_work_fn_ret_t |
typedef void | core_work_fn_arg_t |
typedef int | arglist_type |
typedef void | initflag_type |
Public Member Functions | |
typedef | core_work_fn_ret_t (__cdecl core_work_fn_type)(void) |
__stdcall | thread_params (core_work_fn_type *const sa, const security_type se=0, const stack_size_type ss=0) noexcept(true) FORCE_INLINE |
const tstring | to_string () const |
Public Attributes | |
const security_type | security |
const stack_size_type | stack_size |
core_work_fn_type *const | work_fn |
arglist_type | arglist |
handle_type | handle |
tid_type | id |
Static Public Attributes | |
static constexpr generic_traits::api_type | api_type =API |
static constexpr stack_size_type | max_stack_size =std::numeric_limits<stack_size_type>::max() |
Clearly you should provide some useful types for these when you specialise this class for an API!
Definition at line 153 of file thread_params_traits.hpp.
typedef int jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::arglist_type |
Definition at line 181 of file thread_params_traits.hpp.
typedef void jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::core_work_fn_arg_t |
Definition at line 172 of file thread_params_traits.hpp.
typedef void jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::core_work_fn_ret_t |
Definition at line 171 of file thread_params_traits.hpp.
typedef int jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::handle_type |
Definition at line 160 of file thread_params_traits.hpp.
typedef void jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::initflag_type |
Definition at line 182 of file thread_params_traits.hpp.
typedef int jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::pid_type |
Definition at line 161 of file thread_params_traits.hpp.
typedef int jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::processor_mask_type |
Definition at line 165 of file thread_params_traits.hpp.
typedef int jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::security_type |
Definition at line 170 of file thread_params_traits.hpp.
typedef int jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::stack_size_type |
Definition at line 155 of file thread_params_traits.hpp.
typedef int jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::suspend_count |
Definition at line 167 of file thread_params_traits.hpp.
typedef int jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::suspend_period_ms |
Definition at line 168 of file thread_params_traits.hpp.
typedef int jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::tid_type |
Definition at line 162 of file thread_params_traits.hpp.
using jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::username_type = std::array<char, 256> |
The size is a guess...
Definition at line 163 of file thread_params_traits.hpp.
enum jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params::creation_flags |
Enumerator | |
---|---|
create_running | |
create_suspended |
Definition at line 184 of file thread_params_traits.hpp.
enum jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params::priority_type |
Enumerator | |
---|---|
lowest | |
idle | |
below_normal | |
normal | |
above_normal | |
highest | |
time_critical | |
unknown_priority |
Definition at line 188 of file thread_params_traits.hpp.
enum jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params::states |
Note that these states are in a specific order - the higher the number, the more severe any error.
Definition at line 202 of file thread_params_traits.hpp.
enum jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params::thread_cancel_state |
Enumerator | |
---|---|
cancel_enable | |
cancel_disable |
Definition at line 220 of file thread_params_traits.hpp.
|
inlineexplicitnoexcept |
Definition at line 233 of file thread_params_traits.hpp.
References jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::arglist, jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::handle, jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::id, jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::security, jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::stack_size, and jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::work_fn.
typedef jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::core_work_fn_ret_t | ( | __cdecl | core_work_fn_type | ) |
|
inline |
Definition at line 238 of file thread_params_traits.hpp.
References jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::arglist, jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::handle, jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::id, and jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::work_fn.
|
inlinestaticconstexpr |
Definition at line 157 of file thread_params_traits.hpp.
arglist_type jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::arglist |
Definition at line 228 of file thread_params_traits.hpp.
Referenced by jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::thread_params(), and jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::to_string().
handle_type jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::handle |
Definition at line 230 of file thread_params_traits.hpp.
Referenced by jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::thread_params(), and jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::to_string().
tid_type jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::id |
Definition at line 231 of file thread_params_traits.hpp.
Referenced by jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::thread_params(), and jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::to_string().
|
inlinestaticconstexpr |
Definition at line 158 of file thread_params_traits.hpp.
const security_type jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::security |
Definition at line 225 of file thread_params_traits.hpp.
Referenced by jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::thread_params().
const stack_size_type jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::stack_size |
Definition at line 226 of file thread_params_traits.hpp.
Referenced by jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::thread_params().
core_work_fn_type* const jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::work_fn |
Definition at line 227 of file thread_params_traits.hpp.
Referenced by jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::thread_params(), and jmmcg::LIBJMMCG_VER_NAMESPACE::ppd::thread_params< API >::to_string().