node/test/addons/async-resource
Andreas Madsen 3faeb49d94 async_hooks: C++ Embedder API overhaul
* Fix AsyncHooksGetTriggerAsyncId such it corresponds to
async_hooks.triggerAsyncId and not async_hooks.initTriggerId.
* Use an async_context struct instead of two async_uid values.
  This change was necessary since the fixing
  AsyncHooksGetTriggerAsyncId otherwise makes it impossible to
  get the correct default trigger id. It also prevents an invalid
  triggerAsyncId in MakeCallback.
* Rename async_uid to async_id for consistency
* Rename get_uid to get_async_id
* Add get_trigger_async_id to AsyncResource class

PR-URL: https://github.com/nodejs/node/pull/14040
Backport-PR-URL: https://github.com/nodejs/node/pull/14109
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Andreas Madsen <amwebdk@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2017-07-19 15:02:24 -04:00
..
binding.cc async_hooks: C++ Embedder API overhaul 2017-07-19 15:02:24 -04:00
binding.gyp
test.js async_hooks: C++ Embedder API overhaul 2017-07-19 15:02:24 -04:00