std::size_t get_os_thread_count(
    const threads::executor& exec)

Description

Return the number of worker OS- threads used by the given executor to execute pika threads

This function returns the number of cores used to execute pika threads for the given executor. If the function is called while no pika runtime system is active, it will return zero. If the executor is not valid, this function will fall back to retrieving the number of OS threads used by pika.

Declared at: libs/pika/runtime/include/pika/runtime/get_os_thread_count.hpp:35

Parameters

const threads::executor& exec
[in] The executor to be used.