Own native thread ports and the Mach allocated thread array.
More...
#include <system_info_macos.h>
Own native thread ports and the Mach allocated thread array.
◆ macOS_thread_resources() [1/2]
| mysql::system_info::internal::macOS_thread_resources::macOS_thread_resources |
( |
thread_act_array_t |
threads, |
|
|
mach_msg_type_number_t |
thread_count, |
|
|
macOS_thread_deallocator |
deallocator |
|
) |
| |
Take ownership of the thread ports and array returned by task_threads().
◆ macOS_thread_resources() [2/2]
| mysql::system_info::internal::macOS_thread_resources::macOS_thread_resources |
( |
const macOS_thread_resources & |
| ) |
|
|
delete |
◆ ~macOS_thread_resources()
| mysql::system_info::internal::macOS_thread_resources::~macOS_thread_resources |
( |
| ) |
|
Release owned Mach resources if the collector has not released them.
◆ operator=()
◆ release()
| std::error_code mysql::system_info::internal::macOS_thread_resources::release |
( |
| ) |
|
Release every owned right and the thread array exactly once.
Release the thread ports and allocated array returned by task_threads().
Each thread port is a 'send right' owned by the caller. The array itself is memory allocated by Mach. Release all ports even if one release fails, then release the array. The first error is retained. Repeated calls return the error without releasing anything again.
◆ m_deallocator
◆ m_release_error
| std::error_code mysql::system_info::internal::macOS_thread_resources::m_release_error |
|
private |
◆ m_released
| bool mysql::system_info::internal::macOS_thread_resources::m_released {false} |
|
private |
◆ m_thread_count
| mach_msg_type_number_t mysql::system_info::internal::macOS_thread_resources::m_thread_count |
|
private |
◆ m_threads
| thread_act_array_t mysql::system_info::internal::macOS_thread_resources::m_threads |
|
private |
The documentation for this class was generated from the following files: