node/test/node-api
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
..
1_hello_world test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_async test: prepare for consistent comma-dangle lint rule 2021-04-01 23:14:29 -07:00
test_async_cleanup_hook node-api: define version 8 2021-03-10 16:31:16 -05:00
test_async_context test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_buffer test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_callback_scope test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_cleanup_hook
test_env_teardown_gc node-api: stop ref gc during environment teardown 2021-03-18 20:40:59 -07:00
test_exception test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_fatal test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_fatal_exception test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_general node-api: allow retrieval of add-on file name 2021-02-09 23:34:30 -08:00
test_instance_data test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_make_callback test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_make_callback_recurse test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_null_init
test_policy test: prepare for consistent comma-dangle lint rule 2021-04-01 23:14:29 -07:00
test_threadsafe_function node-api: faster threadsafe_function 2021-05-04 18:39:28 -07:00
test_uv_loop test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_worker_buffer_callback test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_worker_terminate test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
test_worker_terminate_finalization test: rename n-api to node-api 2021-02-06 05:03:38 -08:00
.gitignore
node-api.status
testcfg.py