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

Function SecondaryThread

test/threadsafe_function/threadsafe_function.cc:37–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35static int ints[ARRAY_LENGTH];
36
37static void SecondaryThread() {
38 if (s_tsfn.Release() != napi_ok) {
39 Error::Fatal("SecondaryThread", "ThreadSafeFunction.Release() failed");
40 }
41}
42
43// Source thread producing the data
44static void DataSourceThread() {

Callers

nothing calls this directly

Calls 1

ReleaseMethod · 0.45

Tested by

no test coverage detected