node/test/node-api
Gabriel Schulhof d26ca06c16 n-api: detect deadlocks in thread-safe function
We introduce status `napi_would_deadlock` to be used as a return status
by `napi_call_threadsafe_function` if the call is made with
`napi_tsfn_blocking` on the main thread and the queue is full.

Fixes: https://github.com/nodejs/node/issues/32615
Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com>
PR-URL: https://github.com/nodejs/node/pull/32860
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
2020-04-19 10:07:00 -07:00
..
1_hello_world worker: improve integration with native addons 2019-02-22 21:42:09 +01:00
test_async test: use assert() in N-API async test 2019-06-28 04:56:34 +02:00
test_buffer n-api: keep napi_env alive while it has finalizers 2020-01-04 07:38:36 +01:00
test_callback_scope
test_cleanup_hook
test_exception n-api: defer Buffer finalizer with SetImmediate 2019-06-14 13:03:12 +02:00
test_fatal
test_fatal_exception
test_general n-api: define release 6 2020-03-09 11:58:51 -07:00
test_instance_data n-api: define release 6 2020-03-09 11:58:51 -07:00
test_make_callback n-api: mark version 5 N-APIs as stable 2019-09-05 09:16:54 -07:00
test_make_callback_recurse
test_null_init
test_policy test: cover import of a *.node file with a policy manifest 2019-05-30 15:38:54 +02:00
test_threadsafe_function n-api: detect deadlocks in thread-safe function 2020-04-19 10:07:00 -07:00
test_uv_loop src: de-lint header usage 2019-03-12 09:57:19 -04:00
test_worker_buffer_callback src: migrate to new V8 ArrayBuffer API 2019-12-12 10:05:44 -05:00
test_worker_terminate worker: improve integration with native addons 2019-02-22 21:42:09 +01:00
.gitignore
node-api.status test: remove flaky designation for test_threadsafe_function 2019-03-04 11:09:47 -08:00
testcfg.py