Home
last modified time | relevance | path

Searched refs:tsfn (Results 1 - 3 of 3) sorted by relevance

/third_party/node/test/node-api/test_threadsafe_function/
H A Dtest_uncaught_exception.c40 napi_threadsafe_function tsfn; in CallIntoModule() local
52 &tsfn)); in CallIntoModule()
54 napi_call_threadsafe_function(tsfn, NULL, napi_tsfn_blocking)); in CallIntoModule()
55 NODE_API_CALL(env, napi_release_threadsafe_function(tsfn, napi_tsfn_release)); in CallIntoModule()
H A Dbinding.c294 napi_threadsafe_function tsfn; in CallIntoModule() local
295 NODE_API_CALL(env, napi_create_threadsafe_function(env, argv[0], argv[1], argv[2], 0, 1, finalize_func, ThreadSafeFunctionFinalize, NULL, NULL, &tsfn)); in CallIntoModule()
296 NODE_API_CALL(env, napi_call_threadsafe_function(tsfn, NULL, napi_tsfn_blocking)); in CallIntoModule()
297 NODE_API_CALL(env, napi_release_threadsafe_function(tsfn, napi_tsfn_release)); in CallIntoModule()
/third_party/node/test/node-api/test_instance_data/
H A Dtest_instance_data.c9 napi_threadsafe_function tsfn; member
113 status = napi_call_threadsafe_function(data->tsfn, in ThreadsafeFunctionTestThread()
123 status = napi_release_threadsafe_function(data->tsfn, napi_tsfn_release); in ThreadsafeFunctionTestThread()
139 data->tsfn = NULL; in FinalizeThreadsafeFunction()
155 "tsfn finalizer reference must be NULL"); in TestThreadsafeFunction()
166 &data->tsfn)); in TestThreadsafeFunction()

Completed in 2 milliseconds