Home
last modified time | relevance | path

Searched refs:flag (Results 1 – 25 of 43) sorted by relevance

12

/commonlibrary/ets_utils/js_util_module/util/
Djs_types.cpp25 bool flag = false; in IsAnyArrayBuffer() local
30 flag = true; in IsAnyArrayBuffer()
31 napi_get_boolean(env, flag, &rst); in IsAnyArrayBuffer()
36 flag = true; in IsAnyArrayBuffer()
38 napi_get_boolean(env, flag, &rst); in IsAnyArrayBuffer()
46 bool flag = false; in IsArrayBufferView() local
49 napi_get_boolean(env, flag, &rst); in IsArrayBufferView()
76 flag = true; in IsArrayBufferView()
79 flag = false; in IsArrayBufferView()
83 napi_get_boolean(env, flag, &rst); in IsArrayBufferView()
[all …]
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/
Dwake_list.rs33 flag: AtomicUsize, field
47 flag: AtomicUsize::new(0), in new()
85 if self.flag.load(Ordering::SeqCst) & NOTIFIABLE != 0 { in notify()
97 while self.flag.fetch_or(LOCKED, Ordering::Acquire) & LOCKED != 0 { in lock()
142 let mut flag = 0; in drop() localVariable
146 flag |= NOTIFIABLE; in drop()
148 self.waker_set.flag.store(flag, Ordering::SeqCst); in drop()
186 assert_eq!(wakelist.flag.load(Ordering::SeqCst), 0); in ut_wakelist_new_01()
Dmutex.rs250 let flag = Arc::new(AtomicBool::new(true)); in ut_mutex_try_lock_02() localVariable
251 let flag_clone = flag.clone(); in ut_mutex_try_lock_02()
267 flag.store(false, Ordering::SeqCst); in ut_mutex_try_lock_02()
/commonlibrary/ets_utils/js_sys_module/process/
Djs_process.cpp165 bool flag = false; in Kill() local
168 flag = true; in Kill()
171 NAPI_CALL(env, napi_get_boolean(env, flag, &result)); in Kill()
254 bool flag = false; in Off() local
272 flag = true; in Off()
275 NAPI_CALL(env, napi_get_boolean(env, flag, &convertResult)); in Off()
290 bool flag = true; in IsIsolatedProcess() local
295 NAPI_CALL(env, napi_get_boolean(env, flag, &result)); in IsIsolatedProcess()
298 flag = false; in IsIsolatedProcess()
299 NAPI_CALL(env, napi_get_boolean(env, flag, &result)); in IsIsolatedProcess()
[all …]
/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/
Dtask_cancel.rs68 flag: usize, field
76 if this.flag < 1000000 { in poll()
77 this.flag += 1; in poll()
Djoin_set.rs46 flag: bool, field
54 if !this.flag { in poll()
55 this.flag = true; in poll()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/executor/
Dasync_pool.rs681 let flag = Arc::new(Mutex::new(0)); in ut_executor_mng_info_cancel() localVariable
684 let (flag_clone, tx) = (flag.clone(), tx); in ut_executor_mng_info_cancel()
697 assert_eq!(*flag.lock().unwrap(), 1); in ut_executor_mng_info_cancel()
710 let flag = Arc::new(Mutex::new(0)); in ut_executor_mng_info_wake_up_all() localVariable
713 let (flag_clone, tx) = (flag.clone(), tx); in ut_executor_mng_info_wake_up_all()
728 assert_eq!(*flag.lock().unwrap(), 1); in ut_executor_mng_info_wake_up_all()
742 let flag = Arc::new(Mutex::new(0)); in ut_executor_mng_info_wake_up_rand_one() localVariable
745 let (flag_clone, tx) = (flag.clone(), tx); in ut_executor_mng_info_wake_up_rand_one()
760 assert_eq!(*flag.lock().unwrap(), 1); in ut_executor_mng_info_wake_up_rand_one()
775 let flag = Arc::new(Mutex::new(0)); in ut_executor_mng_info_wake_up_if_one_task_left() localVariable
[all …]
/commonlibrary/ets_utils/js_util_module/container/hashset/
Djs_hashset.ts20 let flag: boolean = false; variable
26 flag = true;
28 if (flag || fastHashSet === undefined) {
/commonlibrary/ets_utils/js_api_module/convertxml/
Djs_convertxml.cpp233 …void ConvertXml::SetPrevInfo(napi_env env, const napi_value &recvElement, int flag, int32_t &index… in SetPrevInfo() argument
235 if (!prevObj_.empty() && !flag) { in SetPrevInfo()
243 … void ConvertXml::GetXMLInfo(napi_env env, xmlNodePtr curNode, const napi_value &object, int flag) in GetXMLInfo() argument
275 SetPrevInfo(env, recvElement, flag, index1); in GetXMLInfo()
592 size_t flag = 0; in Replace() local
597 size_t strLen = begCdata - flag; in Replace()
598 temp = str.substr(flag, strLen); in Replace()
604 str.replace(flag, strLen, temp); in Replace()
605 flag = endCdata - count + 3; // 3 : length of "]]>" in Replace()
607 temp = str.substr(flag); in Replace()
[all …]
Djs_convertxml.h115 void GetXMLInfo(napi_env env, xmlNodePtr curNode, const napi_value &object, int flag = 0);
123 … void SetPrevInfo(napi_env env, const napi_value &recvElement, int flag, int32_t &index1) const;
/commonlibrary/ets_utils/js_api_module/convertxml/test/
Dtest_convertxml.cpp513 bool flag = false; variable
514 CxmlTest::SetXmlElementType(env, curNode1, elementsObject, flag);
515 flag = false;
517 CxmlTest::SetXmlElementType(env, curNode1, elementsObject, flag);
519 ASSERT_TRUE(flag);
531 bool flag = true; variable
534 ASSERT_TRUE(flag);
545 bool flag = true; variable
547 ASSERT_TRUE(flag);
558 bool flag = true; variable
[all …]
/commonlibrary/utils_lite/js/builtin/deviceinfokit/src/
Dnativeapi_deviceinfo.cpp30 uint8_t argsNum, AsyncWorkHandler ExecuteFunc, bool flag = false) in ExecuteAsyncWork() argument
42 params->flag = flag; in ExecuteAsyncWork()
/commonlibrary/ets_utils/js_util_module/container/queue/
Djs_queue.ts19 let flag: boolean = false; variable
25 flag = true;
28 if (flag || fastQueue === undefined) {
/commonlibrary/ets_utils/js_util_module/container/stack/
Djs_stack.ts19 let flag: boolean = false; variable
25 flag = true;
28 if (flag || fastStack === undefined) {
/commonlibrary/ets_utils/js_util_module/container/hashmap/
Djs_hashmap.ts20 let flag: boolean = false; variable
26 flag = true;
28 if (flag || fastHashMap === undefined) {
/commonlibrary/ets_utils/js_util_module/container/deque/
Djs_deque.ts19 let flag: boolean = false; variable
25 flag = true;
28 if (flag || fastDeque === undefined) {
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/conn/
Dhttp2.rs182 let mut flag = FrameFlags::new(UNUSED_FLAG); in build_data_frame() localVariable
183 flag.set_end_stream(true); in build_data_frame()
186 flag, in build_data_frame()
204 let mut flag = FrameFlags::new(UNUSED_FLAG); in build_headers_frame() localVariable
205 flag.set_end_headers(true); in build_headers_frame()
207 flag.set_end_stream(true); in build_headers_frame()
211 flag, in build_headers_frame()
/commonlibrary/ets_utils/js_util_module/container/plainarray/
Djs_plainarray.ts20 let flag: boolean = false; variable
26 flag = true;
28 if (flag || fastPlainArray === undefined) {
/commonlibrary/ets_utils/js_util_module/container/lightweightset/
Djs_lightweightset.ts20 let flag: boolean = false; variable
26 flag = true;
28 if (flag || fastLightWeightSet === undefined) {
/commonlibrary/ets_utils/js_util_module/container/treeset/
Djs_treeset.ts20 let flag: boolean = false; variable
26 flag = true;
28 if (flag || fastTreeSet === undefined) {
/commonlibrary/utils_lite/js/builtin/common/include/
Dnativeapi_common.h26 bool flag = false; member
/commonlibrary/ets_utils/js_util_module/container/treemap/
Djs_treemap.ts20 let flag: boolean = false; variable
26 flag = true;
28 if (flag || fastTreeMap === undefined) {
/commonlibrary/ets_utils/js_util_module/util/src/
Dutil_js.ts163 let flag: boolean = false;
165 flag = true;
168 if (!flag) {
268 let flag: boolean = false;
270 flag = true;
273 if (!flag) {
791 let flag: boolean = false;
793 flag = true;
800 return flag;
803 return flag;
[all …]
/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/
Dhttp_body.rs230 let (size, flag) = self.merge_chunks(&mut buf[read..read + size])?; in data()
233 if flag { in data()
254 let (size, flag) = self.merge_chunks(&mut buf[read..read + filled])?; in data()
256 if flag { in data()
/commonlibrary/ets_utils/js_util_module/container/lightweightmap/
Djs_lightweightmap.ts20 let flag: boolean = false; variable
26 flag = true;
28 if (flag || fastLightWeightMap === undefined) {

12