Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change to priority queue of pointers to Callback objects #40

Merged
merged 2 commits into from Jan 24, 2018

Conversation

wch
Copy link
Member

@wch wch commented Jan 24, 2018

This fixes #39. It uses shared_ptrs to ensure that the objects get cleaned up without much fuss.

I've tested it on my Mac, and with RDassertthread and RDsan from the r-debug Docker image, and I no longer see any errors. Previously, it would usually give weird errors and crash on Mac, and with RDassertthread, it would error out every time with a failed thread assertion.

I added a NEWS item to 0.7 -- if it's too late for 0.7, I can move it to a new section.

@jcheng5 jcheng5 merged commit 198db6a into master Jan 24, 2018
@wch wch deleted the fix-callback-copy branch January 24, 2018 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using C++ interface for later::later() can trigger R's GC on the wrong thread
2 participants