Module extendr_api::thread_safety
source ยท Expand description
Provide limited protection for multithreaded access to the R API.
Constantsยง
- THREA
D_ ๐HAS_ LOCK
Staticsยง
- R_
API_ ๐LOCK A global lock, that should represent the global lock on the R-API. It is not tied to an actual instance of R. - R_
ERRO ๐R_ BUF
Functionsยง
- Wrap an R function such as
Rf_findFunction
and convert errors and panics into results. - Run
f
while ensuring thatf
runs in a single-threaded manner.