diff options
author | Anna Henningsen <anna@addaleax.net> | 2017-11-17 22:13:18 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2017-11-21 08:33:19 +0100 |
commit | c0f3bc24de1c88fe8daa74d3520880775a021fee (patch) | |
tree | 26da06a040eb22d16fe6fee354a0c4ddf6527b5b /src/node_api.h | |
parent | 804eb3cd734176f123142f0db496279cb2f645fd (diff) | |
download | android-node-v8-c0f3bc24de1c88fe8daa74d3520880775a021fee.tar.gz android-node-v8-c0f3bc24de1c88fe8daa74d3520880775a021fee.tar.bz2 android-node-v8-c0f3bc24de1c88fe8daa74d3520880775a021fee.zip |
src: add helper for addons to get the event loop
Add a utility functions for addons to use when they need
a reference to the current event loop.
Currently, `uv_default_loop()` works if the embedder is the
single-threaded default node executable, but even without
the presence of e.g. workers that might not really an API
guarantee for when Node is embedded.
PR-URL: https://github.com/nodejs/node/pull/17109
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/node_api.h')
0 files changed, 0 insertions, 0 deletions