Skip to content

Commit

Permalink
task: add single_threaded everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
CGMossa committed Jan 21, 2024
1 parent 3fae2cb commit aa76f67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extendr-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ pub unsafe fn register_call_methods(info: *mut libR_sys::DllInfo, metadata: Meta
numArgs: 0,
});

single_threaded(|| {
libR_sys::R_registerRoutines(
info,
std::ptr::null(),
Expand All @@ -492,6 +493,7 @@ pub unsafe fn register_call_methods(info: *mut libR_sys::DllInfo, metadata: Meta
// This seems to allow both symbols and strings,
libR_sys::R_useDynamicSymbols(info, 0);
libR_sys::R_forceSymbols(info, 0);
})
}

/// Type of R objects used by [Robj::rtype].
Expand Down

0 comments on commit aa76f67

Please sign in to comment.