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

src: use unique_ptr for scheduled delayed tasks #17083

Commits on Nov 16, 2017

  1. src: use unique_ptr for scheduled delayed tasks

    Use std::unique_ptr for delayed tasks in the scheduled
    delayed tasks vector. This makes it clear that the vector
    has ownership of the delayed tasks and is responsible for
    deleting them.
    
    Use a custom deleter for the pointers because libuv
    needs to close the handle and then delete the data. Provide
    the handle when creating the pointer instead of invoking the
    special delete action everytime an element is removed from the vector.
    fhinkel committed Nov 16, 2017
    Configuration menu
    Copy the full SHA
    8fe4791 View commit details
    Browse the repository at this point in the history