max_threads(size_t)ΒΆ
-
FroidurePinBase &
libsemigroups::FroidurePinBase
::
max_threads
(size_t nr_threads) Set the maximum number of threads that any member function of an instance of FroidurePin can use.
This member function sets the maximum number of threads to be used by any member function of a FroidurePin object. The number of threads is limited to the maximum of 1 and the minimum of
nr_threads
and the number of threads supported by the hardware.The default value is std::thread::hardware_concurrency().
- Return
A reference to
this
.- Exceptions
This function is
noexcept
and is guaranteed never to throw.- Complexity
Constant.
- See
- Parameters
nr_threads
: the maximum number of threads to use.