Unverified Commit a1a409a8 authored by Joyee Cheung's avatar Joyee Cheung Committed by Anna Henningsen
Browse files

src: simplify Environment::HandleCleanup

- Make the HandleCleanup a struct, and make the queue a
  std::list, iterate over it in CleanupHandles() and clear
  it after that.
- Put the handle cleanup registration into a method and
  document that they will not be called in the one environemt
  per process setup.

PR-URL: https://github.com/nodejs/node/pull/19319


Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarJackson Tian <shyvo1987@gmail.com>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 855dabd6
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment