Home
last modified time | relevance | path

Searched refs:TASK_NUM (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/benches/
H A Dsync_benchmarks.rs37 let handlers: Vec<[u8; TASK_NUM]> = black_box(Vec::with_capacity(TASK_NUM)); in single_thread_run_1000_fibbo()
38 for _ in 0..TASK_NUM { in single_thread_run_1000_fibbo()
60 for _i in 0..TASK_NUM { in std_read_file()
76 for tar in READ_BUFFER.iter_mut().take(TASK_NUM) { in std_read_file_by_chars()
91 for _i in 0..TASK_NUM { in std_write_file()
101 let (send, recv) = mpsc::sync_channel(TASK_NUM); in std_multi_threaded_ping()
106 for _ in 0..TASK_NUM { in std_multi_threaded_ping()
111 for _ in 0..TASK_NUM { in std_multi_threaded_ping()
119 let (send, recv) = mpsc::sync_channel(TASK_NUM); in std_multi_threaded_ping_pong()
124 for _ in 0..TASK_NUM { in std_multi_threaded_ping_pong()
[all …]
H A Dylong_tokio_multi_threaded.rs56 let (send, recv) = mpsc::sync_channel(TASK_NUM);
60 for _ in 0..TASK_NUM {
67 for _ in 0..TASK_NUM {
104 let (send, recv) = mpsc::sync_channel(TASK_NUM); in chained_spawn()
111 runtime_clone.spawn(async move { iter(runtime_iter_clone, sender, TASK_NUM) }); in chained_spawn()
147 let (send, recv) = mpsc::sync_channel(TASK_NUM); in chained_spawn()
152 tokio::spawn(async move { iter(sender, TASK_NUM) }); in chained_spawn()
H A Dylong_tokio_file.rs19 pub const TASK_NUM: usize = 10; const
28 for _ in 0..TASK_NUM {
39 for _ in 0..TASK_NUM {
174 use crate::{tokio_runtime, TASK_NUM, THREAD_NUM};
210 use crate::{tokio_runtime, TASK_NUM, THREAD_NUM};
H A Dylong_tokio_async_file.rs40 for _ in 0..TASK_NUM {
65 for i in 0..TASK_NUM {
90 for _ in 0..TASK_NUM {
/ohos5.0/foundation/window/window_manager/window_scene/test/unittest/
H A Dws_ffrt_helper_test.cpp30 static constexpr size_t TASK_NUM = 1000; variable
95 for (size_t i = 0; i < TASK_NUM; ++i) { in __anon964b526b0202()
107 ASSERT_EQ(result, TASK_NUM * threadNum);
151 for (size_t i = 0; i < TASK_NUM; ++i) { in __anon964b526b0602()
160 ASSERT_EQ(result, totalTaskNum - threadNum * TASK_NUM);
/ohos5.0/foundation/resourceschedule/ffrt/src/sync/
H A Dperf_counter.h24 constexpr int TASK_NUM = 1; variable
52 struct PerfTask perfTask[TASK_NUM];
H A Dperf_counter.cpp207 for (int i = 0; i < TASK_NUM; i++) { in perf_counter_output()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/examples/
H A Dylong_runtime_tcp.rs22 const TASK_NUM: usize = 120; const
57 for i in 0..TASK_NUM { in ylong_tcp_send_recv()
/ohos5.0/base/inputmethod/imf/test/unittest/cpp_test/src/
H A Dime_freeze_manager_test.cpp30 constexpr int32_t TASK_NUM = 100; variable
149 for (int32_t i = 0; i < TASK_NUM; i++) { in FullTestTask()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/decision_center/include/
H A Dlnn_decision_center.h81 TASK_NUM, enumerator
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/benches/task_helpers/
H A Dmod.rs29 pub const TASK_NUM: usize = 10; const