Home
last modified time | relevance | path

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

12

/ohos5.0/base/powermgr/power_manager/test/apitest/inner_api/ffrt/src/
H A Dffrt_utils_test.cpp63 ffrt::this_task::sleep_for(std::chrono::milliseconds(1)); in __anone73078890302()
78 ffrt::this_task::sleep_for(std::chrono::milliseconds(10));
81 ffrt::this_task::sleep_for(std::chrono::milliseconds(50));
84 ffrt::this_task::sleep_for(std::chrono::milliseconds(80));
103 ffrt::this_task::sleep_for(std::chrono::milliseconds(5));
106 ffrt::this_task::sleep_for(std::chrono::milliseconds(7));
125 ffrt::this_task::sleep_for(std::chrono::milliseconds(5));
131 ffrt::this_task::sleep_for(std::chrono::milliseconds(10));
210 ffrt::this_task::sleep_for(std::chrono::milliseconds(50));
214 ffrt::this_task::sleep_for(std::chrono::milliseconds(50));
[all …]
/ohos5.0/foundation/resourceschedule/ffrt/test/ut/testcase/
H A Dut_csync.cpp301 ffrt::this_task::sleep_for(1us); in __anonc91b23f72e02()
326 ffrt::this_task::sleep_for(1us);
384 ffrt::this_task::sleep_for(30ms + eps); in WaitUntilTimeoutTest()
609 ffrt::this_task::sleep_for(20ms); in TryLockTest()
614 ffrt::this_task::sleep_for(2ms); in TryLockTest()
638 ffrt::this_task::sleep_for(20ms); in LockSharedTest()
643 ffrt::this_task::sleep_for(2ms); in LockSharedTest()
668 ffrt::this_task::sleep_for(20ms); in TryLockSharedTest()
673 ffrt::this_task::sleep_for(2ms); in TryLockSharedTest()
693 ffrt::this_task::sleep_for(20ms); in TryLockSharedTest()
[all …]
H A Dut_condition.cpp261 this_task::yield();
270 this_task::sleep_for(10ms);
280 this_task::sleep_for(5us); in __anone2a138be2302()
H A Dut_dependency.cpp74 … printf("return %d\n", ffrt::this_task::update_qos(static_cast<int>(ffrt::qos_user_initiated))); in __anonf988f8560702()
/ohos5.0/foundation/resourceschedule/ffrt/src/sync/
H A Dsleep.cpp34 namespace this_task { namespace
69 auto curTask = ffrt::this_task::ExecuteCtxTask();
93 ffrt::this_task::SleepUntilImpl(to);
/ohos5.0/foundation/communication/netmanager_base/services/common/include/
H A Dffrt_timer.h93 ffrt::this_task::sleep_for(std::chrono::milliseconds(TIMER_MAX_INTERVAL_MS)); in OneTiming()
96 ffrt::this_task::sleep_for(std::chrono::milliseconds(remainTime)); in OneTiming()
/ohos5.0/base/hiviewdfx/hiview/plugins/event_store/event_export/
H A Devent_export_engine.cpp139 ffrt::this_task::sleep_for(std::chrono::seconds(REGISTER_LOOP_DURATION)); in RegistSettingObserver()
171 ffrt::this_task::sleep_for(exportTask->GetExecutingCycle()); in InitAndRunTask()
/ohos5.0/foundation/resourceschedule/ffrt/interfaces/kits/cpp/
H A Dsleep.h30 namespace this_task {
H A Dtask.h749 namespace this_task {
/ohos5.0/base/telephony/core_service/utils/common/src/
H A Dtel_event_handler.cpp48 ffrt::this_task::sleep_for(std::chrono::milliseconds(timeoutMs)); in SleepFor()
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/wrapper/
H A Dwrapper_listener.cpp113 ffrt::this_task::sleep_for(std::chrono::seconds(1)); in Listen()
/ohos5.0/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/
H A Dfault_detector_manager.cpp109 … ffrt::this_task::sleep_for(std::chrono::microseconds(TASK_TIMER_INTERVAL * 1000 * 1000)); // 5s in OnLoad()
/ohos5.0/base/hiviewdfx/hiview/base/event_store/store/
H A Dsys_event_repeat_guard.cpp147 ffrt::this_task::sleep_for(std::chrono::seconds(REGISTER_LOOP_DURATION)); in RegisterListeningUeSwitch()
/ohos5.0/foundation/communication/netmanager_base/services/netconnmanager/src/
H A Dnat464_service.cpp115 ffrt::this_task::sleep_for(std::chrono::milliseconds(discoveryCycleMs_)); in DiscoverPrefix()
/ohos5.0/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/native_leak/
H A Dnative_leak_state.cpp388 ffrt::this_task::sleep_for(microseconds(WAIT_TO_DUMP_PROFILER_MEM * US_PER_SECOND)); in DumpStackInfo()
549 ffrt::this_task::sleep_for(microseconds(WAIT_TRACKER_SO_LOAD_TIME_OUT * US_PER_SECOND)); in LaunchMemoryDebug()
559 ffrt::this_task::sleep_for(microseconds(WAIT_NMD_INFO_DUMP * US_PER_SECOND)); in GetProfiler()
/ohos5.0/base/hiviewdfx/hiview/plugins/event_store/event_export/task/export/
H A Devent_read_handler.cpp78 ffrt::this_task::sleep_for(std::chrono::seconds(1)); // sleep for 1 second before retry in QuerySysEventInRange()
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/
H A Dbpf_netfirewall.cpp115 if (ffrt::this_task::get_id() != 0) { in RingBufferListenThread()
177 ffrt::this_task::sleep_for(std::chrono::milliseconds(CONNTRACK_GC_INTTERVAL_MS)); in StartConntrackGcThread()
178 if (ffrt::this_task::get_id() != 0) { in StartConntrackGcThread()
/ohos5.0/foundation/resourceschedule/ffrt/docs/
H A Duser_guide.md574 namespace this_task {
602 ffrt::submit([] { std::cout << "task id: " << ffrt::this_task::get_id() << std::endl; });
603 ffrt::submit([] { std::cout <<"task id: " << ffrt::this_task::get_id() << std::endl; });
605 std::cout << "task id: " << ffrt::this_task::get_id() << std::endl;
628 namespace this_task {
661 … std::cout << "return " << ffrt::this_task::update_qos(ffrt::qos_user_initiated) << std::endl;
665 std::cout << "return " << ffrt::this_task::update_qos(ffrt::qos_user_initiated) << std::endl;
1278 namespace this_task {
1320 ffrt::this_task::sleep_for(2000ms);
1345 namespace this_task {
[all …]
/ohos5.0/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/test/
H A Dtest_util.cpp90 ffrt::this_task::sleep_for(chrono::milliseconds(MS_PER_SECOND)); in RestartProcess()
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/taskpool/
H A Dworker.cpp40 if (ffrt::this_task::update_qos(WORKERPRIORITY_FFRTQOS_MAP.at(taskPriority)) != 0) { in PriorityScope()
527 if (ffrt::this_task::update_qos(WORKERPRIORITY_FFRTQOS_MAP.at(Priority::HIGH)) != 0) { in ResetWorkerPriority()
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/aging/
H A Dbundle_aging_mgr.cpp118 ffrt::this_task::sleep_for(std::chrono::milliseconds(sharedPtr->agingTimerInterval_)); in ScheduleLoopTask()
/ohos5.0/foundation/bundlemanager/app_domain_verify/test/unittest/frameworks_common/httpsession_test/
H A Dapp_domain_verify_task_mgr_test.cpp59 ffrt::this_task::sleep_for(std::chrono::milliseconds(SLEEP_TIME)); in Sleep()
/ohos5.0/base/hiviewdfx/hiview/framework/native/unified_collection/collector/utils/
H A Dtrace_utils.cpp372 ffrt::this_task::sleep_for(5s); in CheckCurrentCpuLoad()
/ohos5.0/base/hiviewdfx/hiview/plugins/unified_collector/
H A Dunified_collector.cpp458 ffrt::this_task::sleep_for(10s); // 10s: collect period in CpuCollectionFfrtTask()
/ohos5.0/foundation/resourceschedule/ffrt/src/queue/
H A Dqueue_handler.cpp78 this_task::sleep_for(std::chrono::microseconds(timeout_)); in ~QueueHandler()

12