/ohos5.0/base/powermgr/power_manager/test/apitest/inner_api/ffrt/src/ |
H A D | ffrt_utils_test.cpp | 63 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 D | ut_csync.cpp | 301 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 D | ut_condition.cpp | 261 this_task::yield(); 270 this_task::sleep_for(10ms); 280 this_task::sleep_for(5us); in __anone2a138be2302()
|
H A D | ut_dependency.cpp | 74 … 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 D | sleep.cpp | 34 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 D | ffrt_timer.h | 93 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 D | event_export_engine.cpp | 139 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 D | sleep.h | 30 namespace this_task {
|
H A D | task.h | 749 namespace this_task {
|
/ohos5.0/base/telephony/core_service/utils/common/src/ |
H A D | tel_event_handler.cpp | 48 ffrt::this_task::sleep_for(std::chrono::milliseconds(timeoutMs)); in SleepFor()
|
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/wrapper/ |
H A D | wrapper_listener.cpp | 113 ffrt::this_task::sleep_for(std::chrono::seconds(1)); in Listen()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/ |
H A D | fault_detector_manager.cpp | 109 … 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 D | sys_event_repeat_guard.cpp | 147 ffrt::this_task::sleep_for(std::chrono::seconds(REGISTER_LOOP_DURATION)); in RegisterListeningUeSwitch()
|
/ohos5.0/foundation/communication/netmanager_base/services/netconnmanager/src/ |
H A D | nat464_service.cpp | 115 ffrt::this_task::sleep_for(std::chrono::milliseconds(discoveryCycleMs_)); in DiscoverPrefix()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/native_leak/ |
H A D | native_leak_state.cpp | 388 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 D | event_read_handler.cpp | 78 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 D | bpf_netfirewall.cpp | 115 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 D | user_guide.md | 574 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 D | test_util.cpp | 90 ffrt::this_task::sleep_for(chrono::milliseconds(MS_PER_SECOND)); in RestartProcess()
|
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/taskpool/ |
H A D | worker.cpp | 40 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 D | bundle_aging_mgr.cpp | 118 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 D | app_domain_verify_task_mgr_test.cpp | 59 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 D | trace_utils.cpp | 372 ffrt::this_task::sleep_for(5s); in CheckCurrentCpuLoad()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/unified_collector/ |
H A D | unified_collector.cpp | 458 ffrt::this_task::sleep_for(10s); // 10s: collect period in CpuCollectionFfrtTask()
|
/ohos5.0/foundation/resourceschedule/ffrt/src/queue/ |
H A D | queue_handler.cpp | 78 this_task::sleep_for(std::chrono::microseconds(timeout_)); in ~QueueHandler()
|