hpx/runtime_local/os_thread_type.hpp

See Public API for a list of names and headers that are part of the public HPX API.

namespace hpx
namespace runtime_local

Enums

enum os_thread_type

Types of kernel threads registered with the runtime.

Values:

unknown = -1
main_thread = 0

kernel thread represents main thread

worker_thread

kernel thread is used to schedule HPX threads

io_thread

kernel thread can be used for IO operations

timer_thread

kernel is used by timer operations

parcel_thread

kernel is used by networking operations

custom_thread

kernel is registered by the application

Functions

std::string get_os_thread_type_name(os_thread_type type)

Return a human-readable name representing one of the kernel thread types.

struct os_thread_data
#include <os_thread_type.hpp>

Registration data for kernel threads that is maintained by the runtime internally

Public Members

std::string label_

name used for thread registration

std::thread::id id_

thread id of corresponding kernel thread

std::uint64_t native_handle_

the threads native handle

os_thread_type type_

HPX thread type.