node/doc/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
..
addons.md doc: update context-aware section of addon doc 2020-03-31 10:22:12 -07:00
assert.md doc: update assert.rejects() docs with a validation function example 2020-02-24 03:49:12 -08:00
async_hooks.md doc: improve AsyncLocalStorage sample 2020-04-13 18:46:45 +02:00
buffer.md doc: document buffer.from returns internal pool buffer 2020-04-13 18:39:12 +02:00
child_process.md doc: clear up child_process command resolution 2020-03-11 17:36:17 +01:00
cli.md 2020-04-14, Version 13.13.0 (Current) 2020-04-14 20:22:41 +02:00
cluster.md doc,cluster: use code markup/markdown in headers 2019-12-26 21:37:25 -08:00
console.md doc,console: use code markup/markdown in headers 2019-12-26 21:37:26 -08:00
crypto.md doc: return type of crypto.getFips() may change 2020-04-03 07:18:08 -04:00
debugger.md doc: reword possessive form of Node.js in debugger.md 2020-02-17 17:32:53 -08:00
deprecations.md doc: split process.umask() entry into two 2020-04-10 13:21:11 -07:00
dgram.md doc: clarify listening event 2020-04-07 20:31:40 +02:00
dns.md 2020-04-14, Version 13.13.0 (Current) 2020-04-14 20:22:41 +02:00
documentation.md doc: add link to sem-ver info 2020-03-02 04:07:33 +00:00
domain.md doc,domain: use code markup/markdown in headers 2019-12-26 21:39:24 -08:00
embedding.md doc: add basic embedding example documentation 2020-03-21 10:58:25 +01:00
errors.md lib: add option to disable __proto__ 2020-03-18 10:22:42 -07:00
esm.md doc: missing brackets 2020-04-17 12:19:39 -04:00
events.md doc: add unreachable code on events example 2020-04-05 20:45:29 +02:00
fs.md 2020-04-14, Version 13.13.0 (Current) 2020-04-14 20:22:41 +02:00
globals.md doc: use code markup/markdown in headers in globals documentation 2019-12-26 21:39:26 -08:00
http2.md doc: fix typo in http2 docs 2020-03-30 09:35:21 +02:00
http.md doc: remove warning from response.writeHead 2020-04-13 23:36:54 +02:00
https.md doc: fix typos in doc/api/https.md 2020-02-16 16:58:39 +01:00
index.md doc: add basic embedding example documentation 2020-03-21 10:58:25 +01:00
inspector.md doc,inspector: use code markup/markdown in headers 2019-12-26 21:39:27 -08:00
intl.md tools: support full-icu by default 2019-10-03 15:21:26 -07:00
modules.md module: path-only CJS exports extension searching 2020-03-31 20:39:01 -06:00
n-api.md n-api: detect deadlocks in thread-safe function 2020-04-19 10:07:00 -07:00
net.md doc: improve net docs 2020-04-15 14:40:42 +02:00
os.md doc: fix os.version() Windows API 2020-03-12 20:43:34 -04:00
path.md doc: use uppercase on windows path 2020-03-29 22:43:53 +02:00
perf_hooks.md 2020-04-14, Version 13.13.0 (Current) 2020-04-14 20:22:41 +02:00
policy.md doc: remove personal pronoun usage in policy.md 2020-03-09 19:47:29 -07:00
process.md doc: split process.umask() entry into two 2020-04-10 13:21:11 -07:00
punycode.md doc,punycode: use code markup/markdown in headers 2019-12-26 21:39:30 -08:00
querystring.md doc,querystring: use code markup/markdown in headers 2019-12-26 21:39:30 -08:00
readline.md doc: updated YAML version representation in readline.md 2020-02-25 13:53:22 -08:00
repl.md doc: reword possessive form of Node.js in repl.md 2020-02-12 00:20:37 -08:00
report.md src,cli: support compact (one-line) JSON reports 2020-03-17 08:42:41 -07:00
stream.md doc: add transform stream destroy() return value 2020-04-13 20:38:12 -04:00
string_decoder.md doc: add support encoding link on string_decoder.md 2020-03-11 17:06:13 +01:00
synopsis.md doc: move Usage and Example to same header level 2019-07-09 19:45:20 -07:00
timers.md doc,timers: use code markup/markdown in headers 2019-12-26 21:39:32 -08:00
tls.md 2020-03-04 Version 13.10.0 (Current) 2020-03-04 09:53:11 -08:00
tracing.md doc: remove dashes 2019-10-26 08:39:41 -07:00
tty.md doc,tty: use code markup/markdown in headers 2019-12-26 21:39:33 -08:00
url.md doc: remove em dashes 2020-03-05 22:25:42 -08:00
util.md 2020-04-14, Version 13.13.0 (Current) 2020-04-14 20:22:41 +02:00
v8.md doc: clarify that v8.serialize() is not deterministic 2020-01-30 16:35:47 -08:00
vm.md doc: improve wording in vm.md 2020-03-24 10:24:37 -07:00
wasi.md wasi: add returnOnExit option 2020-03-08 11:05:23 -04:00
worker_threads.md 2020-04-14, Version 13.13.0 (Current) 2020-04-14 20:22:41 +02:00
zlib.md doc: update zlib doc 2020-02-26 16:56:16 -08:00