Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Schulhof <gabriel.schulhof@intel.com>2020-04-16 17:23:31 +0300
committerGabriel Schulhof <gabriel.schulhof@intel.com>2020-04-16 22:52:12 +0300
commitd3d5eca657474f25fab47036fef9469efc211d8a (patch)
tree26e7f0f73143337933b939b60ec15054683ccf46 /src/js_native_api_types.h
parenta9da65699a43f81076a1560e09ae97ad5630c35f (diff)
Revert "n-api: detect deadlocks in thread-safe function"
This reverts commit aeb7084fe6446350ec032e9819746126811bf44f. The solution creates incorrect behaviour on Windows. Re: https://github.com/nodejs/node-addon-api/pull/697#issuecomment-612993476 Signed-off-by: Gabriel Schulhof <gabriel.schulhof@intel.com> PR-URL: https://github.com/nodejs/node/pull/32880 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
Diffstat (limited to 'src/js_native_api_types.h')
-rw-r--r--src/js_native_api_types.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/js_native_api_types.h b/src/js_native_api_types.h
index c32c71c4d39..7a49fc9f719 100644
--- a/src/js_native_api_types.h
+++ b/src/js_native_api_types.h
@@ -82,15 +82,11 @@ typedef enum {
napi_date_expected,
napi_arraybuffer_expected,
napi_detachable_arraybuffer_expected,
- napi_would_deadlock
} napi_status;
// Note: when adding a new enum value to `napi_status`, please also update
-// * `const int last_status` in the definition of `napi_get_last_error_info()'
-// in file js_native_api_v8.cc.
-// * `const char* error_messages[]` in file js_native_api_v8.cc with a brief
-// message explaining the error.
-// * the definition of `napi_status` in doc/api/n-api.md to reflect the newly
-// added value(s).
+// `const int last_status` in `napi_get_last_error_info()' definition,
+// in file js_native_api_v8.cc. Please also update the definition of
+// `napi_status` in doc/api/n-api.md to reflect the newly added value(s).
typedef napi_value (*napi_callback)(napi_env env,
napi_callback_info info);