Home
last modified time | relevance | path

Searched refs:future_ (Results 1 – 25 of 25) sorted by relevance

/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/src/
H A Dfuture.cpp171 if (future_) { in Set()
172 future_->SetResult(res); in Set()
173 future_ = nullptr; in Set()
179 if (future_) { in SetAbandoned()
180 future_->SetAbandoned(); in SetAbandoned()
181 future_ = nullptr; in SetAbandoned()
187 if (!future_) { in GetFuture()
188 future_.reset(new Future); in GetFuture()
190 return future_; in GetFuture()
195 if (future_) { in SetQueueInfo()
[all …]
H A Dfuture.h106 BASE_NS::shared_ptr<Future> future_;
/ohos5.0/foundation/window/window_manager/test/systemtest/wms/
H A Dwindow_gesture_navigation_enabled_test.cpp38 RunnableFuture<bool> future_; member in OHOS::Rosen::TestGestureNavigationEnabledChangedListener
43 future_.SetValue(enable); in OnGestureNavigationEnabledUpdate()
94 auto result = lisenter_->future_.GetResult(WAIT_FUTURE_RESULT);
100 lisenter_->future_.Reset(true);
102 result = lisenter_->future_.GetResult(WAIT_FUTURE_RESULT);
107 lisenter_->future_.Reset(false);
/ohos5.0/foundation/window/window_manager/test/demo/
H A Ddemo_water_mark_listener.cpp33 future_.SetValue(showWaterMark); in OnWaterMarkFlagUpdate()
35 RunnableFuture<bool> future_; member in OHOS::Rosen::WaterMarkFlagChangedListenerFuture
56 auto result = listener->future_.GetResult(WaterMarkFlagChangedListenerFuture::WAIT_TIME); in main()
59 listener->future_.Reset(result); in main()
61 result = listener->future_.GetResult(WaterMarkFlagChangedListenerFuture::WAIT_TIME); in main()
H A Ddemo_visible_window_num_listener.cpp35 future_.SetValue(visibleWindowNumInfo); in OnVisibleWindowNumChange()
37 RunnableFuture<std::vector<VisibleWindowNumInfo>> future_; member in OHOS::Rosen::VisibleWindowNumChangedListenerFuture
58 visibleWindowNumInfo = listener->future_.GetResult(WAIT_TIME); in main()
64 listener->future_.Reset(visibleWindowNumInfo); in main()
66 visibleWindowNumInfo = listener->future_.GetResult(WAIT_TIME); in main()
H A Ddemo_system_sub_window.cpp33 future_.SetValue(1); in OnWindowVisibilityChanged()
35 RunnableFuture<int32_t> future_; member in OHOS::Rosen::SystemSubWindowFuture
95 listener->future_.Reset(0); in main()
96 listener->future_.GetResult(SystemSubWindowFuture::WAIT_TIME); in main()
H A Ddemo_screenshot_listener.cpp32 auto info = listener->future_.GetResult(20000); in main()
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/threading/
H A Dtask_queue_factory.cpp110 explicit TaskResult(std::shared_ptr<State>&& future) : future_(BASE_NS::move(future)) {} in TaskResult()
114 if (future_) { in Wait()
115 future_->Wait(); in Wait()
120 if (future_) { in IsDone()
121 return future_->IsDone(); in IsDone()
133 std::shared_ptr<State> future_; member in __anondcf869ec0110::TaskResult
/ohos5.0/base/useriam/user_auth_framework/frameworks/native/executors/src/async_command/
H A Dcustom_command.cpp50 future_ = promise_.get_future(); in SendRequest()
88 if (!future_.valid()) { in GetResult()
94 auto ret = future_.wait_for(maxWaitTime); in GetResult()
/ohos5.0/foundation/window/window_manager/wm/src/
H A Dpattern_detach_callback.cpp24 future_.SetValue(persisitentId); in OnPatternDetach()
29 future_.GetResult(timeOut); in GetResult()
/ohos5.0/foundation/window/window_manager/test/common/utils/include/
H A Dscreenshot_listener_future.h28 future_.SetValue(info); in OnScreenshot()
30 RunnableFuture<ScreenshotInfo> future_; variable
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Dbundle_promise.h60 future_.get(); in WaitForAllTasksExecute()
66 std::future<void> future_ = promise_.get_future();
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/utils/
H A Dpipeline_context_holder.h57 pipelineContext_ = future_.get(); in Get()
66 std::future<RefPtr<PipelineBase>> future_ = promise_.get_future();
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/thread/
H A Dcancelable_callback.h100 std::shared_future<int32_t> future_ { promise_.get_future() };
138 std::shared_future<int32_t> future(impl->future_); in WaitUntilComplete()
172 std::shared_future<int32_t> future(impl->future_); in Cancel()
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Dresource_theme_style.cpp237 if (future_.valid()) { in CheckThemeStyleLoaded()
238future_.wait_until(std::chrono::system_clock::now() + std::chrono::milliseconds(WAIT_FOR_TIME)); in CheckThemeStyleLoaded()
H A Dresource_theme_style.h69 std::shared_future<void> future_ = promise_.get_future();
/ohos5.0/foundation/window/window_manager/wm/include/
H A Dpattern_detach_callback.h29 RunnableFuture<int> future_{};
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/bundle_manager/
H A Dclean_cache_callback.cpp43 if (future_.wait_for(std::chrono::seconds(TIMEOUT)) == std::future_status::ready) { in WaitForCompletion()
H A Dclean_cache_callback.h48 std::future<void> future_ = promise_.get_future();
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/common/
H A Dace_view.h136 hasSet_ = future_.get(); in GetBackgroundColor()
203 std::shared_future<bool> future_ = promise_.get_future();
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/i18n/
H A Dlocalization.h285 std::shared_future<bool> future_ = promise_.get_future();
294 isInit_ = future_.get(); in WaitingForInit()
/ohos5.0/base/useriam/user_auth_framework/frameworks/native/executors/include/async_command/
H A Dcustom_command.h43 std::future<void> future_; variable
/ohos5.0/foundation/communication/nfc/services/include/
H A Dnfc_service.h135 std::future<int> future_ {};
/ohos5.0/foundation/communication/nfc/services/src/
H A Dnfc_service.cpp254 if (!IsNfcTaskReady(future_)) { in ExecuteTask()
261 future_ = promise.get_future(); in ExecuteTask()
/ohos5.0/foundation/window/window_manager/test/systemtest/dms/
H A Dscreenshot_test.cpp243 auto info = screenShotListener->future_.GetResult(1000);