Package 'RcppThread'

Title: R-Friendly Threading in C++
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>.
Authors: Thomas Nagler [aut, cre]
Maintainer: Thomas Nagler <[email protected]>
License: MIT + file LICENSE
Version: 2.2.0
Built: 2025-01-29 06:24:48 UTC
Source: https://github.com/tnagler/rcppthread

Help Index


Detect the Number of CPU Cores

Description

Detects the number of (logical) CPU cores.

Usage

detectCores()

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()'.


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 [email protected] (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: