Home
last modified time | relevance | path

Searched refs:task_handle (Results 1 - 25 of 51) sorted by relevance

123

/foundation/ability/form_fwk/services/src/
H A Dform_serial_queue.cpp46 task_handle task_handle = queue_.submit_h(func, task_attr().delay(ms * CONVERSION_FACTOR)); in ScheduleTask() local
47 if (task_handle == nullptr) { in ScheduleTask()
48 HILOG_ERROR("null task_handle"); in ScheduleTask()
60 task_handle task_handle = queue_.submit_h(func, task_attr().delay(ms * CONVERSION_FACTOR)); in ScheduleDelayTask() local
61 if (task_handle == nullptr) { in ScheduleDelayTask()
62 HILOG_ERROR("null task_handle"); in ScheduleDelayTask()
65 taskMap_[eventMsg] = std::move(task_handle); in ScheduleDelayTask()
/foundation/ability/form_fwk/services/form_render_service/src/
H A Dform_render_serial_queue.cpp47 task_handle task_handle = queue_.submit_h(func, task_attr().delay(ms * CONVERSION_FACTOR)); in ScheduleTask() local
48 if (task_handle == nullptr) { in ScheduleTask()
61 task_handle task_handle = queue_.submit_h(func, task_attr().delay(ms * CONVERSION_FACTOR)); in ScheduleDelayTask() local
62 if (task_handle == nullptr) { in ScheduleDelayTask()
66 taskMap_[taskName] = std::move(task_handle); in ScheduleDelayTask()
/foundation/resourceschedule/ffrt/interfaces/kits/cpp/
H A Dtask.h181 class task_handle { class
183 task_handle() : p(nullptr) in task_handle() function in ffrt::task_handle
186 task_handle(ffrt_task_handle_t p) : p(p) in task_handle() function in ffrt::task_handle
190 ~task_handle() in ~task_handle()
197 task_handle(task_handle const&) = delete;
198 task_handle& operator=(task_handle const&) = delete;
200 inline task_handle(task_handle function in ffrt::task_handle
[all...]
H A Dqueue.h167 inline task_handle submit_h(const std::function<void()>& func, const task_attr& attr = {}) in submit_h()
182 inline task_handle submit_h(std::function<void()>&& func, const task_attr& attr = {}) in submit_h()
197 inline int cancel(const task_handle& handle) in cancel()
209 inline void wait(const task_handle& handle) in wait()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/common/
H A Dserial_queue.cpp46 task_handle task_handle = queue_->submit_h(func, task_attr().delay(ms * CONVERSION_FACTOR)); in ScheduleDelayTask() local
47 if (task_handle == nullptr) { in ScheduleDelayTask()
51 taskMap_[taskName] = std::move(task_handle); in ScheduleDelayTask()
/foundation/ability/ability_runtime/services/common/src/
H A Dffrt_task_utils_wrap.h27 explicit InnerTaskHandle(ffrt::task_handle &&taskHandle) in InnerTaskHandle()
32 ffrt::task_handle &GetFfrtHandle() in GetFfrtHandle()
37 ffrt::task_handle taskHandle_;
/foundation/communication/netmanager_base/services/netpolicymanager/src/core/
H A Dnet_policy_callback.cpp43 ffrt::task_handle RegisterNetPolicyCallbackAsyncTask = in RegisterNetPolicyCallbackAsync()
84 ffrt::task_handle UnregisterNetPolicyCallbackAsyncTask = in UnregisterNetPolicyCallbackAsync()
117 ffrt::task_handle NotifyNetUidPolicyChangeAsyncTask = in NotifyNetUidPolicyChangeAsync()
146 ffrt::task_handle NotifyNetUidRuleChangeAsyncTask = in NotifyNetUidRuleChangeAsync()
174 ffrt::task_handle NotifyNetBackgroundPolicyChangeAsyncTask = in NotifyNetBackgroundPolicyChangeAsync()
205 ffrt::task_handle NotifyNetQuotaPolicyChangeTask = in NotifyNetQuotaPolicyChangeAsync()
232 ffrt::task_handle NotifyNetMeteredIfacesChangeTask = in NotifyNetMeteredIfacesChangeAsync()
/foundation/resourceschedule/ffrt/interfaces/inner_api/cpp/
H A Dthread.h31 is_joinable = std::make_unique<task_handle>(); in thread()
44 is_joinable = std::make_unique<task_handle>(); in thread()
59 is_joinable = std::make_unique<task_handle>(); in thread()
122 std::unique_ptr<task_handle> is_joinable;
H A Dtask_ext.h40 static inline int skip(task_handle &handle) in skip()
/foundation/resourceschedule/resource_schedule_service/ressched/scene_recognize/include/
H A Dslide_recognizer.h53 ffrt::task_handle listFlingEndTask_ = nullptr;
54 ffrt::task_handle listFlingTimeOutTask_ = nullptr;
H A Dcontinuous_app_install_recognizer.h31 ffrt::task_handle exitAppInstall_ = nullptr;
/foundation/systemabilitymgr/samgr/services/samgr/native/source/
H A Dffrt_handler.cpp59 task_handle handler = queue_->submit_h(func); in PostTask()
73 task_handle handler = queue_->submit_h(func, task_attr().delay(delayTime * CONVERSION_FACTOR)); in PostTask()
88 task_handle handler = queue_->submit_h(func, task_attr().delay(delayTime * CONVERSION_FACTOR)); in PostTask()
/foundation/communication/netmanager_base/services/netconnmanager/src/
H A Dnet_factoryreset_callback.cpp41 ffrt::task_handle ResetCallbackAsyncTask = factoryResetCallFfrtQueue_->submit_h([this, &callback, &ret]() { in RegisterNetFactoryResetCallbackAsync()
80 ffrt::task_handle UnregisterNetFactoryResetCallbackAsync = in UnregisterNetFactoryResetCallbackAsync()
114 ffrt::task_handle NotifyNetFactoryResetAsyncTask = factoryResetCallFfrtQueue_->submit_h([this, &ret]() { in NotifyNetFactoryResetAsync()
/foundation/window/window_manager/window_scene/session/host/src/
H A Dws_ffrt_helper.cpp46 void SaveTask(const std::string& taskName, ffrt::task_handle handle) in SaveTask()
82 std::unordered_map<std::string, ffrt::task_handle> taskMap_;
101 ffrt::task_handle handle = ffrt::submit_h(std::move(localTask), {}, {}, ffrt::task_attr().delay(delayTime). in SubmitTask()
/foundation/resourceschedule/device_usage_statistics/services/packagegroup/include/
H A Dbundle_active_group_handler.h73 std::map<int32_t, std::queue<ffrt::task_handle>> taskHandlerMap_;
74 std::map<std::string, ffrt::task_handle> checkBundleTaskMap_;
/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Dlong_frame_report_impl.h31 ffrt::task_handle ffrtTask;
/foundation/multimedia/media_foundation/interface/inner_api/osal/task/
H A Djobutils.h25 using JobHandle = ffrt::task_handle;
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/aging/
H A Dbundle_aging_mgr.cpp265 ffrt::task_handle task_handle = ffrt::submit_h(task); in Start() local
266 if (task_handle == nullptr) { in Start()
/foundation/communication/wifi/wifi/utils/src/
H A Dwifi_event_handler.cpp151 ffrt::task_handle handle = eventQueue->submit_h(callback); in PostSyncTask()
167 ffrt::task_handle handle = eventQueue->submit_h(callback, ffrt::task_attr().delay(delayTimeUs)); in PostAsyncTask()
179 ffrt::task_handle handle = eventQueue->submit_h( in PostAsyncTask()
203 std::map<std::string, ffrt::task_handle> taskMap_;
/foundation/communication/dhcp/services/dhcp_client/src/
H A Ddhcp_thread.cpp69 ffrt::task_handle handle = eventQueue->submit_h(callback); in PostSyncTask()
85 ffrt::task_handle handle = eventQueue->submit_h(callback, ffrt::task_attr().delay(delayTimeUs)); in PostAsyncTask()
97 ffrt::task_handle handle = eventQueue->submit_h( in PostAsyncTask()
125 std::map<std::string, ffrt::task_handle> taskMap_;
/foundation/ability/form_fwk/services/form_render_service/include/
H A Dform_render_serial_queue.h37 std::map<std::string, ffrt::task_handle> taskMap_;
/foundation/ability/form_fwk/services/include/
H A Dform_serial_queue.h36 std::map<std::pair<int64_t, int64_t>, ffrt::task_handle> taskMap_;
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/common/
H A Dserial_queue.h35 std::map<std::string, ffrt::task_handle> taskMap_;
/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/frame_rate_vote/
H A Drs_video_frame_rate_vote.h51 ffrt::task_handle taskHandler_ {nullptr};
/foundation/resourceschedule/ffrt/examples/
H A Dsubmit.cpp41 ffrt::task_handle h = ffrt::submit_h([&]() { x = 2; }, {}, {}); in ffrt_submit_example3()

Completed in 7 milliseconds

123