ThreadSchedule 1.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
threadschedule::ThreadByNameView Class Reference

Public Types

using native_handle_type = pid_t

Public Member Functions

 ThreadByNameView (const std::string &name)
auto found () const noexcept -> bool
auto set_name (std::string const &name) const -> expected< void, std::error_code >
auto get_name () const -> std::optional< std::string >
auto native_handle () const noexcept -> native_handle_type
auto set_priority (ThreadPriority priority) const -> expected< void, std::error_code >
auto set_scheduling_policy (SchedulingPolicy policy, ThreadPriority priority) const -> expected< void, std::error_code >
auto set_affinity (ThreadAffinity const &affinity) const -> expected< void, std::error_code >

Detailed Description

Definition at line 651 of file thread_wrapper.hpp.

Member Typedef Documentation

◆ native_handle_type

using threadschedule::ThreadByNameView::native_handle_type = pid_t

Definition at line 657 of file thread_wrapper.hpp.

Constructor & Destructor Documentation

◆ ThreadByNameView()

threadschedule::ThreadByNameView::ThreadByNameView ( const std::string & name)
inlineexplicit

Definition at line 660 of file thread_wrapper.hpp.

Member Function Documentation

◆ found()

auto threadschedule::ThreadByNameView::found ( ) const -> bool
inlinenodiscardnoexcept

Definition at line 693 of file thread_wrapper.hpp.

◆ get_name()

auto threadschedule::ThreadByNameView::get_name ( ) const -> std::optional<std::string>
inlinenodiscard

Definition at line 723 of file thread_wrapper.hpp.

◆ native_handle()

auto threadschedule::ThreadByNameView::native_handle ( ) const -> native_handle_type
inlinenodiscardnoexcept

Definition at line 742 of file thread_wrapper.hpp.

◆ set_affinity()

auto threadschedule::ThreadByNameView::set_affinity ( ThreadAffinity const & affinity) const -> expected<void, std::error_code>
inlinenodiscard

Definition at line 782 of file thread_wrapper.hpp.

◆ set_name()

auto threadschedule::ThreadByNameView::set_name ( std::string const & name) const -> expected<void, std::error_code>
inlinenodiscard

Definition at line 702 of file thread_wrapper.hpp.

◆ set_priority()

auto threadschedule::ThreadByNameView::set_priority ( ThreadPriority priority) const -> expected<void, std::error_code>
inlinenodiscard

Definition at line 747 of file thread_wrapper.hpp.

◆ set_scheduling_policy()

auto threadschedule::ThreadByNameView::set_scheduling_policy ( SchedulingPolicy policy,
ThreadPriority priority ) const -> expected<void, std::error_code>
inlinenodiscard

Definition at line 764 of file thread_wrapper.hpp.


The documentation for this class was generated from the following file: