Home
last modified time | relevance | path

Searched refs:times (Results 1 - 13 of 13) sorted by relevance

/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/
H A Dspawn.rs39 for (times, handle) in handles.into_iter().enumerate() { in sdv_one_core_test()
41 assert_eq!(ret.unwrap(), times); in sdv_one_core_test()
56 for (times, handle) in handles.into_iter().enumerate() { in sdv_two_core_test()
58 assert_eq!(ret.unwrap(), times); in sdv_two_core_test()
73 for (times, handle) in handles.into_iter().enumerate() { in sdv_three_core_test()
75 assert_eq!(ret.unwrap(), times); in sdv_three_core_test()
90 for (times, handle) in handles.into_iter().enumerate() { in sdv_four_core_test()
92 assert_eq!(ret.unwrap(), times); in sdv_four_core_test()
107 for (times, handle) in handles.into_iter().enumerate() { in sdv_eight_core_test()
109 assert_eq!(ret.unwrap(), times); in sdv_eight_core_test()
[all...]
H A Dasync_pool.rs149 for (times, handle) in handles.into_iter().enumerate() { in sdv_async_pool_001()
151 if times == 0 { in sdv_async_pool_001()
154 if times == 1 { in sdv_async_pool_001()
157 if times == 2 { in sdv_async_pool_001()
209 for (times, handle) in handles.into_iter().enumerate() { in sdv_async_pool_002()
211 if times == 0 { in sdv_async_pool_002()
214 if times == 1 { in sdv_async_pool_002()
217 if times == 2 { in sdv_async_pool_002()
269 for (times, handle) in handles.into_iter().enumerate() { in sdv_async_pool_003()
271 if times in sdv_async_pool_003()
[all...]
H A Dsingleton_runtime.rs52 for (times, handle) in handles.into_iter().enumerate() { in sdv_concurrently_runtime_spawn_async_in_async_task()
54 assert_eq!(ret.unwrap(), (times, times + 1)); in sdv_concurrently_runtime_spawn_async_in_async_task()
80 for (times, handle) in handles.into_iter().enumerate() { in sdv_concurrently_spawn_async_in_async_task()
82 assert_eq!(ret.unwrap(), (times, times + 1)); in sdv_concurrently_spawn_async_in_async_task()
109 for (times, handle) in handles.into_iter().enumerate() { in sdv_concurrently_task_builder_spawn_async_in_async_task()
111 assert_eq!(ret.unwrap(), (times, times + 1)); in sdv_concurrently_task_builder_spawn_async_in_async_task()
H A Dspawn_blocking.rs35 for (times, handle) in handles.into_iter().enumerate() { in ffrt_spawn_blocking_test()
37 assert_eq!(ret.unwrap(), times); in ffrt_spawn_blocking_test()
49 for (times, handle) in handles.into_iter().enumerate() { in ffrt_spawn_blocking_test()
51 assert_eq!(ret.unwrap(), times); in ffrt_spawn_blocking_test()
75 for (times, handle) in handles.into_iter().enumerate() { in test_spawn()
77 assert_eq!(ret.unwrap(), times); in test_spawn()
88 for (times, handle) in handles.into_iter().enumerate() { in test_spawn()
90 assert_eq!(ret.unwrap(), times); in test_spawn()
102 for (times, handle) in handles.into_iter().enumerate() { in test_spawn()
104 assert_eq!(ret.unwrap(), times); in test_spawn()
[all...]
/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_thread_test.cpp25 static int times = 0; member
48 // recover times in SetUp()
49 times = 0; in SetUp()
54 // recover times in TearDown()
55 times = 0; in TearDown()
73 if (times <= TRY_TIMES) { in TestRun03()
131 times = 0; in HWTEST_F()
147 EXPECT_EQ(times, 0); in HWTEST_F()
159 times = 0; in HWTEST_F()
175 EXPECT_EQ(times, in HWTEST_F()
[all...]
/commonlibrary/rust/ylong_runtime/ylong_runtime/examples/
H A Dylong_runtime_timer_sleep.rs49 let mut times = 10; in main() variables
50 while times > 0 { in main()
53 times -= 1; in main()
/commonlibrary/memory_utils/libpurgeablemem/test/
H A Dpurgeable_cpp_test.cpp215 int times = 0; in HWTEST_F() local
217 while (times++ < 10) { in HWTEST_F()
243 int times = 0; in HWTEST_F() local
245 while (times++ < 10) { in HWTEST_F()
275 int times = 0; in HWTEST_F() local
277 while (times++ < 10) { in HWTEST_F()
304 int times = 0; in HWTEST_F() local
306 while (times++ < 10) { in HWTEST_F()
338 int times = 0; in HWTEST_F() local
340 while (times in HWTEST_F()
374 int times = 0; HWTEST_F() local
412 int times = 0; HWTEST_F() local
[all...]
H A Dpurgeableashmem_test.cpp272 int times = 0; in HWTEST_F() local
274 while (times++ < 10) { in HWTEST_F()
301 int times = 0; in HWTEST_F() local
303 while (times++ < 10) { in HWTEST_F()
334 int times = 0; in HWTEST_F() local
336 while (times++ < 10) { in HWTEST_F()
364 int times = 0; in HWTEST_F() local
366 while (times++ < 10) { in HWTEST_F()
399 int times = 0; in HWTEST_F() local
401 while (times in HWTEST_F()
436 int times = 0; HWTEST_F() local
475 int times = 0; HWTEST_F() local
516 int times = 0; HWTEST_F() local
[all...]
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/config/
H A Dsettings.rs106 /// Customizes the number of retries. Returns `Err` if `times` is greater
117 pub fn new(times: usize) -> Result<Self, HttpClientError> { in new()
118 if times >= Self::MAX_RETRIES { in new()
121 Ok(Self(Some(times))) in new()
137 /// Creates a `Retry` with a max retry times.
152 /// Get the retry times, returns None if not set.
159 /// assert!(Retry::default().times().is_none());
161 pub fn times(&self) -> Option<usize> { in times() functions
534 assert_eq!(retry.times(), Some(3)) in ut_retry_max()
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/
H A Dredirect.rs28 pub(crate) fn limited(times: usize) -> Self {
30 strategy: Strategy::LimitTimes(times),
/commonlibrary/ets_utils/js_sys_module/process/
H A Djs_process.cpp430 struct timespec times = {0, 0}; in GetPastCputime() local
432 auto res = clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &times); in GetPastCputime()
436 int when = ConvertTime(times.tv_sec, times.tv_nsec); in GetPastCputime()
/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/
H A Dclient.rs118 let mut retries = self.config.retry.times().unwrap_or(0); in retry_send_request()
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/
H A Dclient.rs162 let mut retries = self.config.retry.times().unwrap_or(0);
405 /// Sets retry times for this client.
407 /// The Retry is the number of times the client will retry the request if

Completed in 8 milliseconds