aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFranziska Hinkelmann <franziska.hinkelmann@gmail.com>2017-11-12 18:25:18 +0100
committerFranziska Hinkelmann <franziska.hinkelmann@gmail.com>2017-11-19 09:32:37 +0100
commit24e824ad68eb61671d499741d7e3608bd8b51a88 (patch)
treea46ef723d15e3d58aa51282f795bae75338f37e3 /test
parentf841fc63ddc4808e301e30b60f666190c025f9a2 (diff)
downloadandroid-node-v8-24e824ad68eb61671d499741d7e3608bd8b51a88.tar.gz
android-node-v8-24e824ad68eb61671d499741d7e3608bd8b51a88.tar.bz2
android-node-v8-24e824ad68eb61671d499741d7e3608bd8b51a88.zip
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. PR-URL: https://github.com/nodejs/node/pull/17083 Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions