mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
node-api: use Node-API in comments
PR-URL: https://github.com/nodejs/node/pull/61320 Reviewed-By: Aviv Keller <me@aviv.sh> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
This commit is contained in:
1 parent
42db0c392d
commit
884f313f40
19 files changed
+51
-49
No files matched your search
@@ -2,7 +2,7 @@
|
||||
// on a threading library for a new project it bears remembering that in the
|
||||
// future libuv may introduce API changes which may render it non-ABI-stable,
|
||||
// which, in turn, may affect the ABI stability of the project despite its use
|
||||
// of N-API.
|
||||
// of Node-API.
|
||||
#include <uv.h>
|
||||
#include <node_api.h>
|
||||
#include "../../js-native-api/common.h"
|
||||
@@ -207,8 +207,11 @@ static napi_value StartThreadInternal(napi_env env,
|
||||
|
||||
NODE_API_ASSERT(env, (ts_fn == NULL), "Existing thread-safe function");
|
||||
napi_value async_name;
|
||||
NODE_API_CALL(env, napi_create_string_utf8(env,
|
||||
"N-API Thread-safe Function Test", NAPI_AUTO_LENGTH, &async_name));
|
||||
NODE_API_CALL(env,
|
||||
napi_create_string_utf8(env,
|
||||
"Node-API Thread-safe Function Test",
|
||||
NAPI_AUTO_LENGTH,
|
||||
&async_name));
|
||||
NODE_API_CALL(env,
|
||||
napi_get_value_uint32(env, argv[3], &ts_info.max_queue_size));
|
||||
NODE_API_CALL(env, napi_create_threadsafe_function(env,
|
||||
|
||||
Reference in new issue
Block a user