MCPcopy Index your code
hub / github.com/nodejs/node-addon-api / TestCall

Function TestCall

test/threadsafe_function/threadsafe_function_exception.cc:16–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16void TestCall(const CallbackInfo& info) {
17 Napi::Env env = info.Env();
18
19 ThreadSafeFunction wrapped =
20 ThreadSafeFunction::New(env,
21 info[0].As<Napi::Function>(),
22 Object::New(env),
23 String::New(env, "Test"),
24 0,
25 1);
26 wrapped.BlockingCall(static_cast<void*>(nullptr));
27 wrapped.Release();
28}
29
30void TestCallWithNativeCallback(const CallbackInfo& info) {
31 Napi::Env env = info.Env();

Callers

nothing calls this directly

Calls 3

EnvMethod · 0.80
BlockingCallMethod · 0.80
ReleaseMethod · 0.45

Tested by

no test coverage detected