search for: make_pool

Displaying 1 result from an estimated 1 matches for "make_pool".

Did you mean: make_bool
2016 Sep 15
1
Finalizer execution order question
...I can properly take hem out of the pool. This is exactly what I was trying to prevent by putting the handles in a 'prot' list. I wrote a simple package [1] that illustrates this issue. To run the example: devtools::install_github("jeroenooms/test") library(test) pool <- make_pool() show_handles(pool) rm(pool) gc() What this example is supposed to illustrate is that even though 'prot' gets protected from GC while the externalptr is around, the finalizers in 'prot' have already executed when the externalptr gets finalized. What is even stranger (to me)...