Searched refs:tsfun (Results 1 – 1 of 1) sorted by relevance
/ohos5.0/foundation/arkui/napi/sample/native_module_systemtest/ |
H A D | js_test_threadsafe_napi.cpp | 32 static napi_threadsafe_function tsfun; variable 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() 152 NAPI_ASSERT(env, (tsfun != nullptr), "Existing threadsafe function"); in StopThread() 157 tsfun = nullptr; in StopThread() 199 NAPI_ASSERT(env, (tsfun == nullptr), "Existing thread-safe function"); in StartThreadInternal() [all …]
|