TMB Documentation  v1.9.11
toggle_thread_safe_R.hpp File Reference

Override subset of R-API with thread safe versions. More...

Go to the source code of this file.

Detailed Description

Override subset of R-API with thread safe versions.

This file is included by TMB.hpp if compiled with _OPENMP. It overrides a selected subset of the R-API with thread safe versions (FIXME: Still some missing?).

If, for some reason, you want to undo the re-defines:

#ifdef TMB_HAVE_THREAD_SAFE_R
#endif

However, note that this is not recommended (the R macros are often used from the user template through at least DATA_STRUCT() and DATA_UPDATE()).

Note
To minimize overhead one should use as few R-API calls as possible, i.e. avoid doing REAL(x)[i] in a loop.

Definition in file toggle_thread_safe_R.hpp.

License: GPL v2