Home
last modified time | relevance | path

Searched refs:uvLoop (Results 1 - 6 of 6) sorted by relevance

/foundation/ability/ability_runtime/frameworks/native/runtime/
H A Dohos_js_environment_impl.cpp132 auto uvLoop = engine->GetUVLoop(); in InitLoop() local
133 auto fd = uvLoop != nullptr ? uv_backend_fd(uvLoop) : -1; in InitLoop()
138 uv_run(uvLoop, UV_RUN_NOWAIT); in InitLoop()
142 eventHandler_->AddFileDescriptorListener(fd, events, std::make_shared<OHOSLoopHandler>(uvLoop), "uvLoopTask"); in InitLoop()
145 uv_register_task_to_event(uvLoop, PostTaskToHandler, nullptr); in InitLoop()
155 auto uvLoop = engine->GetUVLoop(); in DeInitLoop() local
156 auto fd = uvLoop != nullptr ? uv_backend_fd(uvLoop) : -1; in DeInitLoop()
160 uv_unregister_task_to_event(uvLoop); in DeInitLoop()
[all...]
H A Dohos_loop_handler.h30 explicit OHOSLoopHandler(uv_loop_t* uvLoop) : uvLoop_(uvLoop) {} in OHOSLoopHandler() argument
H A Djs_runtime.cpp1389 auto uvLoop = nativeEngine->GetUVLoop(); in FreeNativeReference() local
1390 CHECK_POINTER(uvLoop); in FreeNativeReference()
1413 int ret = uv_queue_work(uvLoop, work, [](uv_work_t *work) {}, in FreeNativeReference()
/foundation/arkui/napi/interfaces/inner_api/cjffi/ark_interop/
H A Duv_loop_handler.h26 explicit UVLoopHandler(uv_loop_t* uvLoop) : uvLoop_(uvLoop) {} in UVLoopHandler() argument
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/
H A Dsimulator.cpp181 uv_loop_t* uvLoop = nullptr; in ~SimulatorImpl() local
182 napi_get_uv_event_loop(nativeEngine_, &uvLoop); in ~SimulatorImpl()
183 if (uvLoop != nullptr) { in ~SimulatorImpl()
185 uv_queue_work(uvLoop, &work, [](uv_work_t*) {}, [](uv_work_t *work, int32_t status) { in ~SimulatorImpl()
213 uv_loop_t* uvLoop = nullptr; in Initialize() local
214 napi_get_uv_event_loop(nativeEngine_, &uvLoop); in Initialize()
215 if (uvLoop == nullptr) { in Initialize()
219 uv_async_init(uvLoop, &debuggerTask_.onPostTaskSignal, in Initialize()
829 uv_loop_t* uvLoop = nullptr; in Run() local
830 napi_get_uv_event_loop(nativeEngine_, &uvLoop); in Run()
[all...]
/foundation/arkui/napi/test/unittest/
H A Dtest_napi_threadsafe.cpp530 explicit UnitLoopHandler(uv_loop_t* uvLoop) : uvLoop_(uvLoop) {} in UnitLoopHandler() argument
564 auto uvLoop = engine_->GetUVLoop(); in AttachEventHandler() local
565 auto fd = uvLoop != nullptr ? uv_backend_fd(uvLoop) : -1; in AttachEventHandler()
567 uv_run(uvLoop, UV_RUN_NOWAIT); in AttachEventHandler()
573 eventHandler_->AddFileDescriptorListener(fd, events, std::make_shared<UnitLoopHandler>(uvLoop), "uvLoopTask"); in AttachEventHandler()

Completed in 7 milliseconds