/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/src/ |
H A D | future.cpp | 171 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 D | future.h | 106 BASE_NS::shared_ptr<Future> future_;
|
/ohos5.0/foundation/window/window_manager/test/systemtest/wms/ |
H A D | window_gesture_navigation_enabled_test.cpp | 38 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 D | demo_water_mark_listener.cpp | 33 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 D | demo_visible_window_num_listener.cpp | 35 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 D | demo_system_sub_window.cpp | 33 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 D | demo_screenshot_listener.cpp | 32 auto info = listener->future_.GetResult(20000); in main()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/threading/ |
H A D | task_queue_factory.cpp | 110 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 D | custom_command.cpp | 50 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 D | pattern_detach_callback.cpp | 24 future_.SetValue(persisitentId); in OnPatternDetach() 29 future_.GetResult(timeOut); in GetResult()
|
/ohos5.0/foundation/window/window_manager/test/common/utils/include/ |
H A D | screenshot_listener_future.h | 28 future_.SetValue(info); in OnScreenshot() 30 RunnableFuture<ScreenshotInfo> future_; variable
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/ |
H A D | bundle_promise.h | 60 future_.get(); in WaitForAllTasksExecute() 66 std::future<void> future_ = promise_.get_future();
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/utils/ |
H A D | pipeline_context_holder.h | 57 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 D | cancelable_callback.h | 100 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 D | resource_theme_style.cpp | 237 if (future_.valid()) { in CheckThemeStyleLoaded() 238 … future_.wait_until(std::chrono::system_clock::now() + std::chrono::milliseconds(WAIT_FOR_TIME)); in CheckThemeStyleLoaded()
|
H A D | resource_theme_style.h | 69 std::shared_future<void> future_ = promise_.get_future();
|
/ohos5.0/foundation/window/window_manager/wm/include/ |
H A D | pattern_detach_callback.h | 29 RunnableFuture<int> future_{};
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/bundle_manager/ |
H A D | clean_cache_callback.cpp | 43 if (future_.wait_for(std::chrono::seconds(TIMEOUT)) == std::future_status::ready) { in WaitForCompletion()
|
H A D | clean_cache_callback.h | 48 std::future<void> future_ = promise_.get_future();
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/common/ |
H A D | ace_view.h | 136 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 D | localization.h | 285 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 D | custom_command.h | 43 std::future<void> future_; variable
|
/ohos5.0/foundation/communication/nfc/services/include/ |
H A D | nfc_service.h | 135 std::future<int> future_ {};
|
/ohos5.0/foundation/communication/nfc/services/src/ |
H A D | nfc_service.cpp | 254 if (!IsNfcTaskReady(future_)) { in ExecuteTask() 261 future_ = promise.get_future(); in ExecuteTask()
|
/ohos5.0/foundation/window/window_manager/test/systemtest/dms/ |
H A D | screenshot_test.cpp | 243 auto info = screenShotListener->future_.GetResult(1000);
|