Represent thread configuration, to be used with parallel loops.
More...
#include <threading_utils.h>
Represent thread configuration, to be used with parallel loops.
◆ ThreadConfig()
treelite::detail::threading_utils::ThreadConfig::ThreadConfig |
( |
int |
nthread | ) |
|
|
inlineexplicit |
Create thread configuration.
- Parameters
-
nthread | Number of threads to use. If <= 0, use all available threads. This value is validated to ensure that it's in a valid range. |
- Returns
- Thread configuration
◆ nthread
std::uint32_t treelite::detail::threading_utils::ThreadConfig::nthread |
The documentation for this struct was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/treelite/checkouts/latest/include/treelite/detail/threading_utils.h