Searched refs:napi_get_threadsafe_function_context (Results 1 – 11 of 11) sorted by relevance
/ohos5.0/foundation/arkui/napi/test/unittest/ |
H A D | test_napi_threadsafe.cpp | 255 auto status = napi_get_threadsafe_function_context(func, &context); in TsFuncDataSourceThread() 283 auto status = napi_get_threadsafe_function_context(func, &context); in TsFuncDataSourceThreadAbort() 307 auto status = napi_get_threadsafe_function_context(func, &context); in TsFuncDataSourceThreadCountTotal() 342 auto status = napi_get_threadsafe_function_context(func, &context); in TsFuncDataSourceThreadMulti()
|
H A D | test_napi.cpp | 6266 napi_status status = napi_get_threadsafe_function_context(tsFunc, result);
|
/ohos5.0/foundation/arkui/napi/sample/native_module_systemtest/ |
H A D | js_test_threadsafe_napi.cpp | 68 NAPI_CALL_RETURN_VOID(env, napi_get_threadsafe_function_context(tsfun, &hint)); in DataSourceThread()
|
H A D | test_napi.cpp | 7144 napi_status getcontextresult = napi_get_threadsafe_function_context(result, &contextresult); 7179 napi_status getcontextresult = napi_get_threadsafe_function_context(result, nullptr); 7212 napi_status getcontextresult = napi_get_threadsafe_function_context(nullptr, &contextresult); 7247 napi_status getcontextresult = napi_get_threadsafe_function_context(result, &contextresult); 7289 napi_status getcontextresult = napi_get_threadsafe_function_context(result, &contextresult); 7331 napi_status getcontextresult = napi_get_threadsafe_function_context(result, &contextresult);
|
/ohos5.0/docs/zh-cn/application-dev/performance/ |
H A D | native-threads-call-js.md | 20 …ipt回调函数,该函数将在主线程上执行;同时设定相关的上下文信息,这个上下文可以在多个线程之间共享,可以随时通过调用napi_get_threadsafe_function_context()来获…
|
/ohos5.0/foundation/arkui/napi/native_engine/ |
H A D | native_node_api.cpp | 450 NAPI_EXTERN napi_status napi_get_threadsafe_function_context(napi_threadsafe_function func, void** … in napi_get_threadsafe_function_context() function
|
/ohos5.0/docs/zh-cn/application-dev/napi/ |
H A D | napi-data-types-interfaces.md | 263 | napi_get_threadsafe_function_context | 获取线程安全函数中的context。 |
|
/ohos5.0/docs/zh-cn/application-dev/reference/native-lib/ |
H A D | napi.md | 144 |FUNC|napi_get_threadsafe_function_context|获取线程安全函数中的context。|10|
|
/ohos5.0/docs/en/application-dev/performance/ |
H A D | develop-Native-modules-using-NAPI-safely-and-efficiently.md | 407 … is called and can be obtained from any thread that calls **napi_get_threadsafe_function_context**.
|
/ohos5.0/docs/en/application-dev/napi/ |
H A D | napi-data-types-interfaces.md | 263 | napi_get_threadsafe_function_context | Obtains the context of a thread-safe function.|
|
/ohos5.0/docs/en/application-dev/reference/native-lib/ |
H A D | napi.md | 144 |FUNC|napi_get_threadsafe_function_context|Obtains the context of a thread-safe function.|10|
|