![]() |
MySQL 8.0.43
Source Code Documentation
|
manage thread affinity. More...
#include <thread_affinity.h>
Public Types | |
| using | native_handle_type = pthread_t |
Public Member Functions | |
| ThreadAffinity (native_handle_type thread_id) noexcept | |
| stdx::expected< std::bitset< max_cpus >, std::error_code > | affinity () const noexcept |
| stdx::expected< void, std::error_code > | affinity (std::bitset< ThreadAffinity::max_cpus > cpus) const noexcept |
Static Public Member Functions | |
| static native_handle_type | current_thread_handle () noexcept |
Static Public Attributes | |
| static constexpr const int | max_cpus = 1024 |
Private Attributes | |
| native_handle_type | thread_id_ |
manage thread affinity.
| using ThreadAffinity::native_handle_type = pthread_t |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
|
staticnoexcept |
|
staticconstexpr |
|
private |