Title: | R-Friendly Threading in C++ |
Version: | 2.2.0 |
Description: | Provides a C++11-style thread class and thread pool that can safely be interrupted from R. See Nagler (2021) <doi:10.18637/jss.v097.c01>. |
Depends: | R (≥ 3.3.0) |
License: | MIT + file LICENSE |
Encoding: | UTF-8 |
URL: | https://github.com/tnagler/RcppThread |
BugReports: | https://github.com/tnagler/RcppThread/issues |
RoxygenNote: | 7.3.2.9000 |
Suggests: | testthat, R.rsp, Rcpp |
VignetteBuilder: | R.rsp |
NeedsCompilation: | yes |
Packaged: | 2025-01-07 13:02:50 UTC; n5 |
Author: | Thomas Nagler |
Maintainer: | Thomas Nagler <mail@tnagler.com> |
Repository: | CRAN |
Date/Publication: | 2025-01-07 13:50:02 UTC |
R-friendly C++11 threads
Description
Provides a C++11-style thread class and thread pool that can safely be interrupted from R.
Author(s)
Maintainer: Thomas Nagler mail@tnagler.com (ORCID)
References
Nagler, T. (2021). "R-Friendly Multi-Threading in C++." Journal of Statistical Software, Code Snippets, 97(1), 1-18. doi:10.18637/jss.v097.c01.
See Also
Useful links:
Get portable linker flags for libraries building on RcppThread
Description
To be used in Makevars
on Linux and OSX. Returns a string with
linker flags for pthread
and libatomic
, if available.
Usage
LdFlags()
Details
Use as ‘PKG_LIBS = $(R_HOME)/bin/Rscript -e ’RcppThread::LdFlags()'.
Detect the Number of CPU Cores
Description
Detects the number of (logical) CPU cores.
Usage
detectCores()