Module thread_safety

Source
Expand description

Provide limited protection for multithreaded access to the R API.

Constantsยง

THREAD_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_ERROR_BUF ๐Ÿ”’

Functionsยง

catch_r_error
Wrap an R function such as Rf_findFunction and convert errors and panics into results.
single_threaded
Run f while ensuring that f runs in a single-threaded manner.
throw_r_error