node/test/node-api/test_threadsafe_function
Fedor Indutny 7abc7e45b2 node-api: faster threadsafe_function
Invoke threadsafe_function during the same tick and avoid marshalling
costs between threads and/or churning event loop if either:

1. There's a queued call already
2. `Push()` is called while the main thread was running
   threadsafe_function

PR-URL: https://github.com/nodejs/node/pull/38506
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2021-05-04 18:39:28 -07:00
..
binding.c node-api: faster threadsafe_function 2021-05-04 18:39:28 -07:00
binding.gyp Revert "n-api: detect deadlocks in thread-safe function" 2020-05-23 17:45:42 +02:00
test.js node-api: faster threadsafe_function 2021-05-04 18:39:28 -07:00