/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/ |
H A D | select.rs | 37 let mut count = 0; in sdv_new_select_basic() variables 40 count += a; in sdv_new_select_basic() 43 count += b; in sdv_new_select_basic() 47 count = 3; in sdv_new_select_basic() 50 count = 4; in sdv_new_select_basic() 54 assert_eq!(count, 2); in sdv_new_select_basic() 102 /// 2. Checks whether the 'count' is correct. 106 let mut count = 0u8; in sdv_new_select_biased() variables 111 _ = async {}, if count < 1 => { in sdv_new_select_biased() 112 count in sdv_new_select_biased() 159 let mut count = 0; sdv_new_select_match() variables 198 let mut count = 0; sdv_new_select_precondition() variables [all...] |
/commonlibrary/c_utils/base/src/ |
H A D | rwlock.cpp | 34 int count; in LockRead() local 38 while ((count = lockCount_) == LOCK_STATUS_WRITE || writeWaitCount_ > 0) {} in LockRead() 39 } while (!lockCount_.compare_exchange_weak(count, count + 1)); in LockRead() 43 while ((count = lockCount_) == LOCK_STATUS_WRITE) {} in LockRead() 44 } while (!lockCount_.compare_exchange_weak(count, count + 1)); in LockRead()
|
H A D | datetime_ex.cpp | 30 return totalSeconds.time_since_epoch().count(); in GetSecondsSince1970ToNow() 42 return totalSeconds.time_since_epoch().count(); in GetSecondsSince1970ToPointTime() 59 return totalDays.time_since_epoch().count(); in GetDaysSince1970ToNow()
|
H A D | refbase.cpp | 75 // RefTracker will save the information about the count of RefBase, 266 // we should update the current count here. in DecStrongRefCount() 393 // the object destroyed on strong reference count reduce to zero. in AttemptIncStrongRef() 453 * RISK: If there is a reference count on the left of the equal sign, 454 * it may cause a reference count exception 617 int count = 0; in AttemptAcquire() local 618 if (refs_->AttemptIncStrongRef(objectId, count)) { in AttemptAcquire() 620 if (count == INITIAL_PRIMARY_VALUE) { in AttemptAcquire() 632 int count = 0; in AttemptIncStrongRef() local 633 bool ret = refs_->AttemptIncStrongRef(objectId, count); in AttemptIncStrongRef() [all...] |
H A D | observer.cpp | 29 if (obs.count(o) > 0) { in AddObserver()
|
/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/encode/ |
H A D | part.rs | 174 let mut count = 0; in data() variables 175 while count != buf.len() { in data() 178 PartStatus::Headers => self.headers_encode(&mut buf[count..]), in data() 179 PartStatus::Crlf => self.crlf_encode(&mut buf[count..]), in data() 180 PartStatus::Body => self.body_sync_encode(&mut buf[count..]), in data() 181 PartStatus::End => return Ok(count), in data() 183 count += encode_size?; in data() 185 Ok(count) in data() 197 let mut count = 0; in poll_data() variables 198 while count ! in poll_data() [all...] |
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/executor/ |
H A D | queue.rs | 111 pub(crate) fn count(&self) -> u64 { 112 self.inner.count() 140 count: AtomicU64, 159 fn count(&self) -> u64 { in count() functions 160 self.metrics.count.load(Acquire) in count() 190 count: AtomicU64::new(0), in new() 284 self.metrics.count.fetch_add(1, AcqRel); 303 let count = LOCAL_QUEUE_CAP / 2; 305 let next = wrap(front, front.wrapping_add(count as u16)); 314 let mut tmp_buf = Vec::with_capacity(count); 352 let mut count = loop { global() variables 487 let mut count = 1; global() variables [all...] |
H A D | worker.rs | 226 pub(crate) count: u32, 238 count: 0, 252 self.count = self.count.wrapping_add(1); in increment_count() 265 if self.count & GLOBAL_PERIODIC_INTERVAL as u32 == 0 { in periodic_check()
|
/commonlibrary/ets_utils/js_concurrent_module/common/helper/ |
H A D | hitrace_helper.h | 22 #define HITRACE_HELPER_COUNT_TRACE(msg, count) CountTrace(HITRACE_TAG_COMMONLIBRARY, msg, count) 27 #define HITRACE_HELPER_COUNT_TRACE(msg, count)
|
H A D | error_helper.h | 169 static std::vector<std::string> SplitErrorFileInfo(const std::string& input, char delimiter, int count) in SplitErrorFileInfo() argument 178 while (pos != std::string::npos && count > 0) { in SplitErrorFileInfo() 182 count--; in SplitErrorFileInfo()
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/ |
H A D | fastrand.rs | 49 let mut count = 0; in seed() variables 51 count += 1; in seed() 53 hasher.write_usize(count); in seed()
|
H A D | select.rs | 76 /// let mut count = 0; 79 /// count += a; 83 /// count += b; 95 /// assert_eq!(count, 2); 137 /// let mut count = 0u8; 142 /// _ = async {}, if count < 1 => { 143 /// count += 1; 144 /// assert_eq!(count, 1); 146 /// _ = async {}, if count < 2 => { 147 /// count [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/timer_benchmark_test/ |
H A D | timer_benchmark_test.cpp | 257 void DoFunc(Utils::Timer &timer, int &count) in DoFunc() argument 261 [&timer, &count]() { in DoFunc() 262 count += 1; in DoFunc() 263 if (count > MAX_COUNT) { in DoFunc() 266 DoFunc(timer, count); in DoFunc() 273 void DoFunc2(Utils::Timer &timer, int &count) in DoFunc2() argument 277 [&timer, &count]() { in DoFunc2() 278 count += 1; in DoFunc2() 279 if (count > MAX_COUNT) { in DoFunc2() 282 DoFunc2(timer, count); in DoFunc2() [all...] |
/commonlibrary/c_utils/base/test/unittest/common/ |
H A D | utils_timer_test.cpp | 282 void DoFunc(Utils::Timer &timer, int &count) in DoFunc() argument 285 [&timer, &count]() { in DoFunc() 286 count += 1; in DoFunc() 287 if (count > 9) { in DoFunc() 290 DoFunc(timer, count); in DoFunc() 296 void DoFunc2(Utils::Timer &timer, int &count) in DoFunc2() argument 299 [&timer, &count]() { in DoFunc2() 300 count += 1; in DoFunc2() 301 if (count > 9) { in DoFunc2() 304 DoFunc2(timer, count); in DoFunc2() [all...] |
H A D | utils_event_test.cpp | 1102 void DoFunc(Timer &timer, int &count) in DoFunc() argument 1105 [&timer, &count]() { in DoFunc() 1106 count = count + 1; in DoFunc() 1107 if (count > 9) { // 9: recursion depth in DoFunc() 1110 DoFunc(timer, count); in DoFunc() 1116 void DoFunc2(Timer &timer, int &count) in DoFunc2() argument 1119 [&timer, &count]() { in DoFunc2() 1120 count = count in DoFunc2() [all...] |
/commonlibrary/ets_utils/platform/default/ |
H A D | process_helper.cpp | 80 int count = 1; in GetProcessStartRealtime() local 83 if (count == 22) { // 22 : starttime in GetProcessStartRealtime() 92 count++; in GetProcessStartRealtime()
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/examples/ |
H A D | ylong_runtime_create_thread_fail.rs | 21 let mut count = 0; in main() variables 23 count += 1; in main() 24 println!("{count}"); in main()
|
/commonlibrary/rust/ylong_http/ylong_http/src/h1/request/ |
H A D | encoder.rs | 255 let mut count = 0; in encode() variables 256 while count != dst.len() { in encode() 257 count += match self.encode_status { in encode() 258 EncodeState::Method => self.method_encode(&mut dst[count..]), in encode() 259 EncodeState::MethodSp => self.method_sp_encode(&mut dst[count..]), in encode() 260 EncodeState::Uri => self.uri_encode(&mut dst[count..]), in encode() 261 EncodeState::UriSp => self.uri_sp_encode(&mut dst[count..]), in encode() 262 EncodeState::Version => self.version_encode(&mut dst[count..]), in encode() 263 EncodeState::VersionCrlf => self.version_crlf_encode(&mut dst[count..]), in encode() 264 EncodeState::Header => self.header_encode(&mut dst[count in encode() [all...] |
/commonlibrary/rust/ylong_http/ylong_http/src/request/uri/ |
H A D | percent_encoding.rs | 88 let mut count = 0; variables 92 count += 1; 99 if count == 2 {
|
/commonlibrary/rust/ylong_http/ylong_http/src/body/ |
H A D | chunk.rs | 225 let mut count = 0; in data() variables 226 while count != buf.len() { in data() 228 DataState::Partial => self.bytes_encode(&mut buf[count..]), in data() 229 DataState::Complete => self.trailer_encode(&mut buf[count..]), in data() 230 DataState::Finish => return Ok(count), in data() 232 count += encode_size; in data() 242 let mut count = 0; in data() variables 243 while count != buf.len() { in data() 252 self.chunk_encode(&mut buf[count..]) in data() 254 DataState::Complete => self.trailer_encode(&mut buf[count in data() 273 let mut count = 0; poll_data() variables 300 let mut count = 0; poll_data() variables [all...] |
/commonlibrary/ets_utils/js_util_module/util/ |
H A D | js_uuid.cpp | 223 unsigned char *count = static_cast<unsigned char*>(data);
in DoParseUUID() local 225 *count = ConvertBits(buffer);
in DoParseUUID() 226 count++;
in DoParseUUID()
|
/commonlibrary/rust/ylong_runtime/ylong_signal/src/ |
H A D | spin_rwlock.rs | 89 // count before acquire the data, the writer will not release the 112 let count = &self.version_holder_count[version]; 113 while count.load(Ordering::SeqCst) != 0 {
|
/commonlibrary/ets_utils/js_concurrent_module/utils/locks/ |
H A D | async_lock.cpp | 251 uint32_t count = --refCount_; in DecRefCount() local 252 if (count == 0) { in DecRefCount() 262 return count; in DecRefCount()
|
/commonlibrary/c_utils/base/test/benchmarktest/event_benchmark_test/ |
H A D | event_benchmark_test.cpp | 1282 void DoFunc(Timer &timer, int &count) in DoFunc() argument 1286 [&timer, &count]() { in DoFunc() 1287 count += 1; in DoFunc() 1288 if (count > RECURSION_DEPTH) { in DoFunc() 1291 DoFunc(timer, count); in DoFunc() 1297 void DoFunc2(Timer &timer, int &count) in DoFunc2() argument 1301 [&timer, &count]() { in DoFunc2() 1302 count += 1; in DoFunc2() 1303 if (count > RECURSION_DEPTH) { in DoFunc2() 1306 DoFunc2(timer, count); in DoFunc2() [all...] |
/commonlibrary/ets_utils/js_sys_module/console/ |
H A D | console.cpp | 81 size_t count = 1; in ParseLogContent() local 83 if (count >= size) { in ParseLogContent() 99 ret += params[count++]; in ParseLogContent() 117 for (; count < size; ++count) { in ParseLogContent() 119 ret += params[count]; in ParseLogContent() 660 (std::chrono::high_resolution_clock::now().time_since_epoch()).count(); in Time() 674 (std::chrono::high_resolution_clock::now().time_since_epoch()).count(); in TimeLog() 692 (std::chrono::high_resolution_clock::now().time_since_epoch()).count(); in TimeEnd() 785 DECLARE_NAPI_DEFAULT_PROPERTY_FUNCTION("count", Coun in InitConsoleModule() [all...] |