Home
last modified time | relevance | path

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

/commonlibrary/c_utils/base/test/benchmarktest/rwlock_benchmark_test/
H A Drwlock_benchmark_test.cpp93 * @tc.desc: RWLock here is under write-first mode. If there are some writing operation waiting,
103 thread first(bind(&TestRWLock::WriteStr, ref(test), ref(WRITE_IN_1))); in BENCHMARK_F()
104 // Try our best to make `first` get the lock in BENCHMARK_F()
114 first.join(); in BENCHMARK_F()
129 * @tc.desc: RWLock here is not under write-first mode. So if there are writing and reading operations in queue
139 thread first(bind(&TestRWLock::WriteStr, ref(test), ref(WRITE_IN_1))); in BENCHMARK_F()
148 first.join(); in BENCHMARK_F()
160 * @tc.desc: This test case validates the default constructor of RWLock. By default, the RWLock is in write-first mode.
171 thread first(bind(&TestRWLock::WriteStr, ref(test), ref(WRITE_IN_1))); in BENCHMARK_F()
177 first in BENCHMARK_F()
[all...]
/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_rwlock_test.cpp67 * @tc.desc: RWLock here is under write-first mode. If there are some writing operation waiting,
75 thread first(bind(&TestRWLock::WriteStr, ref(test), ref(WRITE_IN_1))); in HWTEST_F()
76 this_thread::sleep_for(std::chrono::milliseconds(4)); // Try our best to make `first` get the lock in HWTEST_F()
85 first.join(); in HWTEST_F()
96 * @tc.desc: RWLock here is not under write-first mode. So if there are writing and reading operations in queue
104 thread first(bind(&TestRWLock::WriteStr, ref(test), ref(WRITE_IN_1))); in HWTEST_F()
113 first.join(); in HWTEST_F()
/commonlibrary/memory_utils/libmeminfo/src/
H A Dmeminfo.cpp132 if (memtrack->GetDevMem(pid, memTrackerType.first, records) != HDF_SUCCESS) { in GetGraphicsMemory()
142 if (memTrackerType.first == MEMORY_TRACKER_TYPE_GL) { in GetGraphicsMemory()
145 } else if (memTrackerType.first == MEMORY_TRACKER_TYPE_GRAPH) { in GetGraphicsMemory()
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/uds/
H A Dsocket_addr.rs35 if bytes.first() == Some(&0) {
55 match bytes.first() {
/commonlibrary/c_utils/base/src/
H A Dthread_ex.cpp182 bool first = true; in ThreadStart() local
186 if (first) { in ThreadStart()
187 first = false; in ThreadStart()
H A Dstring_ex.cpp234 bool IsSameTextStr(const string& first, const string& second) in IsSameTextStr() argument
236 return UpperStr(first) == UpperStr(second); in IsSameTextStr()
H A Dtimer.cpp172 reactor_->CancelTimer(itor.first); in DoUnregister()
H A Dio_event_reactor.cpp265 int fd = events[idx].first; in HandleAll()
/commonlibrary/c_utils/base/include/
H A Dsafe_map.h122 map_.erase(ret.first); in EnsureInsert()
211 callback(it -> first, it -> second); in Iterate()
H A Dstring_ex.h181 * @brief Obtains the first substring between the substrings specified
211 * @param first Indicates the first string to check.
215 bool IsSameTextStr(const std::string& first, const std::string& second);
/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/common/
H A Dmod.rs160 while let [first, rest @ ..] = bytes { in trim_ascii_start()
161 if first.is_ascii_whitespace() { in trim_ascii_start()
/commonlibrary/ets_utils/js_sys_module/process/
H A Djs_process.cpp274 while (iter.first != iter.second) { in Off()
275 NAPI_CALL(env, napi_delete_reference(env, iter.first->second)); in Off()
277 iter.first = eventMap.erase(iter.first); in Off()
/commonlibrary/ets_utils/js_concurrent_module/utils/locks/
H A Dasync_lock.cpp221 data->first = this; in AsyncDestroy()
237 delete lockAndWork->first; in AsyncDestroyCallback()
H A Dasync_lock_manager.cpp376 AsyncLockIdentity identity = {true, entry.first, ""}; in CreateLockStates()
390 AsyncLockIdentity identity = {false, 0, entry.first}; in CreateLockStates()
/commonlibrary/rust/ylong_http/ylong_http/src/h2/hpack/representation/
H A Ddecoder.rs263 /// `FirstByte` is responsible for decoding the first byte of the index of
345 /// `LengthFirstByte` is responsible for decoding the first byte of the
606 ($octets: literal, $({ $pat: ident $(, $kind: ident)? => $first: expr $(, $second: expr)?} $(,)?)*) => { in ut_repr_decoder()
610 inner_test_case!(decoder, $pat $(, $kind)? => $first $(, $second)?); in ut_repr_decoder()
/commonlibrary/ets_utils/js_concurrent_module/taskpool/
H A Dtask_manager.cpp1040 if (taskInfo.first != 0) { in NotifyDependencyTaskInfo()
1041 EnqueueTaskId(taskInfo.first, taskInfo.second); in NotifyDependencyTaskInfo()
1168 if (it->first == taskId) { in DequeuePendingTaskInfo()
1169 result = std::make_pair(it->first, it->second); in DequeuePendingTaskInfo()
1237 iter->second.first = totalDuration; in StoreTaskDuration()
1253 return iter->second.first; in GetTaskDuration()
1256 } else if (iter->second.first == 0) { in GetTaskDuration()
1259 return iter->second.first - iter->second.second; in GetTaskDuration()
1713 // refresh priority default values on first creation in CreateOrGetGlobalRunner()
1774 globalSeqRunner_.erase(iter->first); in RemoveSequenceRunner()
[all...]
H A Dworker.cpp388 if (taskInfo.first == 0) { in PerformTask()
394 Task* task = TaskManager::GetInstance().GetTask(taskInfo.first); in PerformTask()
/commonlibrary/ets_utils/js_util_module/util/
H A Djs_textdecoder.cpp170 char *utf8Str = tempPair.first; in GetResultStr()
178 char *utf8Str = tempPair.first; in GetResultStr()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/util/
H A Dlinked_list.rs101 if let Some(first) = head.next {
102 L::node(first).as_mut().prev = node;
263 /// 3. Remove the first node from the list and check the list.
/commonlibrary/ets_utils/js_concurrent_module/worker/
H A Dworker.cpp222 "the type of the first param must be string."); in Constructor()
597 "the type of listener first param must be string."); in AddListener()
646 "the type of removelistener the first param must be string."); in RemoveListener()
705 "the type of DispatchEvent first param must be event object."); in DispatchEvent()
1031 "the type of worker listener first param must be string."); in ParentPortAddEventListener()
1075 "the type of worker DispatchEvent first param must be Event."); in ParentPortDispatchEvent()
1190 if (iter->first == instanceName) { in RemoveGlobalCallObject()
1509 if (pair.first == globalCallId_) { in HostOnGlobalCallInner()
1510 currentCallId = pair.first; in HostOnGlobalCallInner()
1621 int32_t errCode = pair.first; in HandleGlobalCallError()
[all...]
/commonlibrary/ets_utils/js_concurrent_module/taskpool/test/
H A Dtest_taskpool.cpp165 ASSERT_TRUE(result.first == 0); in HWTEST_F()
277 ASSERT_TRUE(result.first == 0); in HWTEST_F()
520 ASSERT_TRUE(result.first == taskId); in HWTEST_F()
667 ASSERT_EQ(res.first, 24); in HWTEST_F()
822 ASSERT_TRUE(result.first == 36); in HWTEST_F()
830 ASSERT_TRUE(result.first == 37); in HWTEST_F()
833 ASSERT_TRUE(result.first == 0); in HWTEST_F()
/commonlibrary/ets_utils/js_api_module/url/
H A Djs_url.cpp323 if (i.first == urlinfo.scheme && i.second == it) { in AnalysisPort()
1740 HandleIllegalChar(winput, result[0].first); in ToUSVString()
/commonlibrary/rust/ylong_http/ylong_http/src/request/uri/
H A Dmod.rs235 let query = match rest.first() { in from_bytes()
/commonlibrary/ets_utils/js_api_module/buffer/test/
H A Dtest_napi.cpp767 * @tc.desc: The index of the first occurrence of value in buf.
784 * @tc.desc: The index of the first occurrence of value in buf.
801 * @tc.desc: The index of the first occurrence of value in buf.
991 std::string type = item->first; in HWTEST_F()
/commonlibrary/ets_utils/js_concurrent_module/worker/test/
H A Dtest_worker.cpp1591 ASSERT_EQ(pair.first, 2); in HWTEST_F()

Completed in 41 milliseconds