Searched refs:ts_fn (Results 1 – 2 of 2) sorted by relevance
14 static napi_threadsafe_function ts_fn; variable30 napi_threadsafe_function ts_fn = data; in secondary_thread() local32 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() local48 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 …]
305 ThreadSafeFunction* ts_fn = this; in Init() local319 ThreadSafeFunction* ts_fn = in Init() local322 delete ts_fn; in Init()327 ts_fn = nullptr; in Init()330 delete ts_fn; in Init()447 ThreadSafeFunction* ts_fn = in CloseHandlesAndMaybeDelete() local450 ts_fn->Finalize(); in CloseHandlesAndMaybeDelete()489 ThreadSafeFunction* ts_fn = in AsyncCb() local491 ts_fn->Dispatch(); in AsyncCb()1340 v8impl::ThreadSafeFunction* ts_fn = in napi_create_threadsafe_function() local[all …]