|
Thread System 0.3.1
High-performance C++20 thread pool with work stealing and DAG scheduling
|
Classes | |
| struct | system_info |
| System information structure. More... | |
Enumerations | |
| enum class | cpu_architecture { x86 , x86_64 , arm64 , unknown } |
| CPU architecture enumeration. More... | |
| enum class | os_type { windows , macos , linux_os , unknown } |
| Operating system enumeration. More... | |
Functions | |
| cpu_architecture | get_architecture () noexcept |
| Get current CPU architecture. | |
| os_type | get_os () noexcept |
| Get current operating system. | |
| bool | is_arm64 () noexcept |
| Check if running on ARM64 architecture. | |
| uint32_t | get_physical_core_count () noexcept |
| Get physical core count. | |
| uint32_t | get_logical_core_count () noexcept |
| Get logical core count. | |
| bool | is_container_environment () noexcept |
| Check if running in container environment. | |
| bool | has_efficiency_cores () noexcept |
| Check if system has efficiency cores (Apple Silicon) | |
| system_info | get_system_info () noexcept |
| Get comprehensive system information. | |
| const char * | get_platform_name () noexcept |
| Get platform name string. | |
| const char * | get_arch_name () noexcept |
| Get architecture name string. | |
|
strong |
CPU architecture enumeration.
| Enumerator | |
|---|---|
| x86 | |
| x86_64 | |
| arm64 | |
| unknown | |
Definition at line 61 of file platform_detection.h.
|
strong |
Operating system enumeration.
| Enumerator | |
|---|---|
| windows | |
| macos | |
| linux_os | |
| unknown | |
Definition at line 71 of file platform_detection.h.
|
inlinenoexcept |
Get architecture name string.
Definition at line 199 of file platform_detection.h.
References THREAD_SYSTEM_ARCH_NAME.
|
inlinenoexcept |
Get current CPU architecture.
Definition at line 95 of file platform_detection.h.
References arm64, unknown, x86, and x86_64.
Referenced by get_system_info().

|
inlinenoexcept |
Get logical core count.
Definition at line 145 of file platform_detection.h.
Referenced by get_system_info().

|
inlinenoexcept |
Get current operating system.
Definition at line 110 of file platform_detection.h.
References linux_os, macos, unknown, and windows.
Referenced by get_system_info().

|
inlinenoexcept |
Get physical core count.
Definition at line 136 of file platform_detection.h.
Referenced by get_system_info().

|
inlinenoexcept |
Get platform name string.
Definition at line 192 of file platform_detection.h.
References THREAD_SYSTEM_PLATFORM_NAME.
|
inlinenoexcept |
Get comprehensive system information.
Definition at line 176 of file platform_detection.h.
References get_architecture(), get_logical_core_count(), get_os(), get_physical_core_count(), has_efficiency_cores(), kcenon::thread::info, is_arm64(), is_container_environment(), and kcenon::thread::platform::system_info::os.

|
inlinenoexcept |
Check if system has efficiency cores (Apple Silicon)
Definition at line 165 of file platform_detection.h.
Referenced by get_system_info().

|
inlinenoexcept |
Check if running on ARM64 architecture.
Definition at line 125 of file platform_detection.h.
Referenced by get_system_info().

|
inlinenoexcept |
Check if running in container environment.
Definition at line 152 of file platform_detection.h.
Referenced by get_system_info().
