MCPcopy Create free account
hub / github.com/NVIDIA/stdexec / static_thread_pool

Class static_thread_pool

include/exec/static_thread_pool.hpp:1823–1856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1821 } // namespace _pool_
1822
1823 struct static_thread_pool : private _pool_::_static_thread_pool
1824 {
1825 friend struct _pool_::schedule_all_t;
1826 using task_base = _pool_::task_base;
1827
1828 static_thread_pool() = default;
1829
1830 static_thread_pool(std::uint32_t thread_count,
1831 bwos_params params = {},
1832 numa_policy numa = get_numa_policy())
1833 : _pool_::_static_thread_pool(thread_count, params, std::move(numa))
1834 {}
1835
1836 // struct scheduler;
1837 using _pool_::_static_thread_pool::scheduler;
1838
1839 // scheduler get_scheduler() noexcept;
1840 using _pool_::_static_thread_pool::get_scheduler;
1841
1842 // scheduler get_scheduler_on_thread(std::size_t thread_index) noexcept;
1843 using _pool_::_static_thread_pool::get_scheduler_on_thread;
1844
1845 // scheduler get_constrained_scheduler(const nodemask& constraints) noexcept;
1846 using _pool_::_static_thread_pool::get_constrained_scheduler;
1847
1848 // void request_stop() noexcept;
1849 using _pool_::_static_thread_pool::request_stop;
1850
1851 // std::uint32_t available_parallelism() const;
1852 using _pool_::_static_thread_pool::available_parallelism;
1853
1854 // bwos_params params() const;
1855 using _pool_::_static_thread_pool::params;
1856 };
1857
1858 namespace _pool_
1859 {

Callers 1

test_task.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected