1%feature("docstring") OT::TBB
2"Threading parameters.
3
4The number of threads is the value associated to the `TBB-ThreadsNumber` key
5in :class:`~openturns.ResourceMap`, which is initialized to the available cpus,
6and can be overriden by the `OPENTURNS_NUM_THREADS` environment variable."
7
8// ---------------------------------------------------------------------
9
10%feature("docstring") OT::TBB::IsAvailable
11"Ask whether threading support is available.
12
13Returns
14-------
15available : bool
16    Whether threading support is available."
17
18// ---------------------------------------------------------------------
19
20%feature("docstring") OT::TBB::Enable
21"Enable threading."
22
23// ---------------------------------------------------------------------
24
25%feature("docstring") OT::TBB::Disable
26"Disable threading."
27
28// ---------------------------------------------------------------------
29
30%feature("docstring") OT::TBB::SetThreadsNumber
31"Accessor to the maximum number of TBB threads.
32
33Parameters
34----------
35n_threads : int
36    Maximum number of TBB threads."
37
38// ---------------------------------------------------------------------
39
40%feature("docstring") OT::TBB::GetThreadsNumber
41"Accessor to the maximum number of TBB threads.
42
43Returns
44-------
45n_threads : int
46    Maximum number of TBB threads."
47