treelite
Public Member Functions | Public Attributes | List of all members
treelite::detail::threading_utils::ThreadConfig Struct Reference

Represent thread configuration, to be used with parallel loops. More...

#include <threading_utils.h>

Collaboration diagram for treelite::detail::threading_utils::ThreadConfig:
Collaboration graph

Public Member Functions

 ThreadConfig (int nthread)
 Create thread configuration. More...
 

Public Attributes

std::uint32_t nthread
 

Detailed Description

Represent thread configuration, to be used with parallel loops.

Constructor & Destructor Documentation

◆ ThreadConfig()

treelite::detail::threading_utils::ThreadConfig::ThreadConfig ( int  nthread)
inlineexplicit

Create thread configuration.

Parameters
nthreadNumber 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

Member Data Documentation

◆ nthread

std::uint32_t treelite::detail::threading_utils::ThreadConfig::nthread

The documentation for this struct was generated from the following file: