HPX - High Performance ParalleX

PrevUpHomeNext

Function get_num_worker_threads

hpx::get_num_worker_threads — Return the number of worker OS- threads used to execute HPX threads.

Synopsis

// In header: <hpx/hpx_fwd.hpp>


std::size_t get_num_worker_threads();

Description

This function returns the number of OS-threads used to execute HPX threads. If the function is called while no HPX runtime system is active, it will return zero.


PrevUpHomeNext