Home
last modified time | relevance | path

Searched refs:ts_fn (Results 1 – 2 of 2) sorted by relevance

/third_party/node/test/node-api/test_threadsafe_function/
Dbinding.c14 static napi_threadsafe_function ts_fn; variable
30 napi_threadsafe_function ts_fn = data; in secondary_thread() local
32 if (napi_release_threadsafe_function(ts_fn, napi_tsfn_release) != napi_ok) { in secondary_thread()
40 napi_threadsafe_function ts_fn = data; in data_source_thread() local
48 if (napi_get_threadsafe_function_context(ts_fn, &hint) != napi_ok) { in data_source_thread()
61 if (napi_acquire_threadsafe_function(ts_fn) != napi_ok) { in data_source_thread()
66 if (uv_thread_create(&uv_threads[1], secondary_thread, ts_fn) != 0) { in data_source_thread()
73 status = napi_call_threadsafe_function(ts_fn, &ints[index], in data_source_thread()
115 napi_release_threadsafe_function(ts_fn, napi_tsfn_release) != napi_ok) { in data_source_thread()
154 NODE_API_ASSERT(env, (ts_fn != NULL), "Existing threadsafe function"); in StopThread()
[all …]
/third_party/node/src/
Dnode_api.cc305 ThreadSafeFunction* ts_fn = this; in Init() local
319 ThreadSafeFunction* ts_fn = in Init() local
322 delete ts_fn; in Init()
327 ts_fn = nullptr; in Init()
330 delete ts_fn; in Init()
447 ThreadSafeFunction* ts_fn = in CloseHandlesAndMaybeDelete() local
450 ts_fn->Finalize(); in CloseHandlesAndMaybeDelete()
489 ThreadSafeFunction* ts_fn = in AsyncCb() local
491 ts_fn->Dispatch(); in AsyncCb()
1340 v8impl::ThreadSafeFunction* ts_fn = in napi_create_threadsafe_function() local
[all …]