Searched refs:tsfun (Results 1 - 1 of 1) sorted by relevance
/foundation/arkui/napi/sample/native_module_systemtest/ |
H A D | js_test_threadsafe_napi.cpp | 32 static napi_threadsafe_function tsfun; member 52 napi_threadsafe_function tsfun = static_cast<napi_threadsafe_function>(data); in ReleaseThreadsafeFunction() local 54 if (napi_release_threadsafe_function(tsfun, napi_tsfn_release) != napi_ok) { in ReleaseThreadsafeFunction() 65 napi_threadsafe_function tsfun = static_cast<napi_threadsafe_function>(data); in DataSourceThread() local 68 NAPI_CALL_RETURN_VOID(env, napi_get_threadsafe_function_context(tsfun, &hint)); in DataSourceThread() 76 NAPI_CALL_RETURN_VOID(env, napi_acquire_threadsafe_function(tsfun)); in DataSourceThread() 77 if (uv_thread_create(&uv_threads[1], ReleaseThreadsafeFunction, tsfun) != 0) { in DataSourceThread() 83 auto status = napi_call_threadsafe_function(tsfun, &transmitData[index], tsFnInfo->blockOnFull); in DataSourceThread() 105 if (!queueWasClosing && napi_release_threadsafe_function(tsfun, napi_tsfn_release) != napi_ok) { in DataSourceThread() 152 NAPI_ASSERT(env, (tsfun ! in StopThread() [all...] |
Completed in 2 milliseconds