Skip to content

Commit 3364fed

Browse files
committed
guess the bindings are locked?
1 parent 5f909e8 commit 3364fed

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

R/hooks.R

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,15 @@ loadTbbLibrary <- function(name) {
3939
.onUnload <- function(libpath) {
4040

4141
# unload the package library
42-
if (!is.null(.dllInfo)) {
42+
if (!is.null(.dllInfo))
4343
library.dynam.unload("RcppParallel", libpath)
44-
.dllInfo <<- NULL
45-
}
4644

4745
# unload tbb_malloc if we loaded it
48-
if (!is.null(.tbbMallocDllInfo)) {
46+
if (!is.null(.tbbMallocDllInfo))
4947
dyn.unload(.tbbMallocDllInfo[["path"]])
50-
.tbbMallocDllInfo <<- NULL
51-
}
5248

5349
# unload tbb if we loaded it
54-
if (!is.null(.tbbDllInfo)) {
50+
if (!is.null(.tbbDllInfo))
5551
dyn.unload(.tbbDllInfo[["path"]])
56-
.tbbDllInfo <<- NULL
57-
}
5852

5953
}

0 commit comments

Comments
 (0)