Learn R Programming

RcppAlgos (version 2.3.2)

stdThreadMax: Max Number of Concurrent Threads

Description

Rcpp wrapper of std::thread::hardware_concurrency(). As stated by cppreference, the returned value should be considered only a hint.

Usage

stdThreadMax()

Arguments

Value

An integer representing the number of concurrent threads supported by the user implementation. If the value cannot be determined, 1L is returned.

See Also

detectCores

Examples

Run this code
# NOT RUN {
stdThreadMax()
# }

Run the code above in your browser using DataLab