Skip to content

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: @gabrielschulhof

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading