Home
last modified time | relevance | path

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

12

/third_party/rust/crates/once_cell/src/
H A Dlib.rs62 //! ## Lazy Initialized Global Data
82 //! There are also the [`sync::Lazy`] and [`unsync::Lazy`] convenience types to streamline this pattern:
86 //! use once_cell::sync::Lazy;
88 //! static GLOBAL_DATA: Lazy<Mutex<HashMap<i32, String>>> = Lazy::new(|| {
100 //! Note that the variable that holds `Lazy` is declared as `static`, *not*
103 //! [`sync::Lazy`]: sync/struct.Lazy.html
104 //! [`unsync::Lazy`]
684 pub struct Lazy<T, F = fn() -> T> { global() structure names
697 impl<T, F> Lazy<T, F> { global() impls
1220 pub struct Lazy<T, F = fn() -> T> { global() structure names
1240 impl<T, F> Lazy<T, F> { global() impls
[all...]
/third_party/rust/crates/once_cell/tests/
H A Dit.rs7 use once_cell::unsync::{Lazy, OnceCell};
105 let x = Lazy::new(|| { in lazy_new()
124 let mut x = Lazy::new(|| { in lazy_deref_mut()
143 let mut x = Lazy::new(|| { in lazy_force_mut()
148 let v = Lazy::force_mut(&mut x); in lazy_force_mut()
159 let mut x: Lazy<u32, _> = Lazy::new(|| { in lazy_get_mut()
167 let mut_ref: &mut u32 = Lazy::get_mut(&mut x).unwrap(); in lazy_get_mut()
187 let lazy: Lazy<std::sync::Mutex<Foo>> = <_>::default(); in lazy_default()
202 let l: Lazy<i3 in lazy_into_value()
[all...]
/third_party/rust/crates/lazy-static.rs/src/
H A Dcore_lazy.rs12 pub struct Lazy<T: Sync>(Once<T>); structure names
14 impl<T: Sync> Lazy<T> { impls
15 pub const INIT: Self = Lazy(Once::INIT);
29 static $NAME: $crate::lazy::Lazy<$T> = $crate::lazy::Lazy::INIT;
H A Dinline_lazy.rs19 pub struct Lazy<T: Sync>(Cell<Option<T>>, Once); structure names
21 impl<T: Sync> Lazy<T> { impls
23 pub const INIT: Self = Lazy(Cell::new(None), ONCE_INIT);
49 unsafe impl<T: Sync> Sync for Lazy<T> {}
55 static $NAME: $crate::lazy::Lazy<$T> = $crate::lazy::Lazy::INIT;
/third_party/rust/crates/once_cell/examples/
H A Dbench_vs_lazy_static.rs2 use once_cell::sync::Lazy;
7 static ONCE_CELL: Lazy<Vec<String>> = Lazy::new(|| vec!["Spica".to_string(), "Hoyten".to_string()]);
H A Dlazy_static.rs3 use once_cell::sync::{Lazy, OnceCell};
6 static HASHMAP: Lazy<HashMap<u32, &'static str>> = Lazy::new(|| {
/third_party/rust/crates/cxx/gen/build/src/
H A Dcfg.rs347 use once_cell::sync::Lazy;
381 static CURRENT: Lazy<RwLock<CurrentCfg>> = Lazy::new(|| RwLock::new(CurrentCfg::default()));
/third_party/rust/crates/clap/clap_derive/src/
H A Ditem.rs564 static DEFAULT_VALUE: clap::__macro_refs::once_cell::sync::Lazy<String> = clap::__macro_refs::once_cell::sync::Lazy::new(|| { in push_attrs()
573 static DEFAULT_VALUE: clap::__macro_refs::once_cell::sync::Lazy<String> = clap::__macro_refs::once_cell::sync::Lazy::new(|| { in push_attrs()
632 static DEFAULT_STRINGS: clap::__macro_refs::once_cell::sync::Lazy<Vec<::std::string::String>> = clap::__macro_refs::once_cell::sync::Lazy::new(|| { in push_attrs()
636 static DEFAULT_VALUES: clap::__macro_refs::once_cell::sync::Lazy<Vec<&str>> = clap::__macro_refs::once_cell::sync::Lazy::new(|| { in push_attrs()
652 static DEFAULT_STRINGS: clap::__macro_refs::once_cell::sync::Lazy<Vec<::std::string::String>> = clap::__macro_refs::once_cell::sync::Lazy in push_attrs()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
H A DDomTreeUpdater.cpp60 if (Strategy != UpdateStrategy::Lazy || !DT) in applyDomTreeUpdates()
81 if (Strategy != UpdateStrategy::Lazy || !PDT) in applyPostDomTreeUpdates()
105 // After calling deleteBB or callbackDeleteBB under Lazy UpdateStrategy, in forceFlushDeletedBB()
132 // Lazy UpdateStrategy so we recalculate available trees immediately. in recalculate()
176 // UpdateStrategy is Lazy. When the UpdateStrategy is
180 if (Strategy == UpdateStrategy::Lazy) { in deleteBB()
193 if (Strategy == UpdateStrategy::Lazy) { in callbackDeleteBB()
235 if (Strategy == UpdateStrategy::Lazy) { in applyUpdates()
294 if (Strategy == UpdateStrategy::Lazy) in applyUpdatesPermissive()
450 OS << "Lazy\ in dump()
[all...]
/third_party/rust/crates/which-rs/src/
H A Dfinder.rs156 use once_cell::sync::Lazy; in append_extension()
162 static PATH_EXTENSIONS: Lazy<Vec<String>> = Lazy::new(|| { in append_extension()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
H A DDomTreeUpdater.h28 enum class UpdateStrategy : unsigned char { Eager = 0, Lazy = 1 }; member in llvm::DomTreeUpdater::UpdateStrategy
48 /// Returns true if the current strategy is Lazy.
49 bool isLazy() const { return Strategy == UpdateStrategy::Lazy; }; in isLazy()
95 /// 2. Lazy UpdateStrategy: Updates are submitted but only flushed when you
107 /// The Eager Strategy flushes updates immediately while the Lazy Strategy
127 /// The Eager Strategy flushes updates immediately while the Lazy Strategy
152 /// Strategy flushes this update immediately while the Lazy Strategy queues
163 /// The Eager Strategy flushes this update immediately while the Lazy Strategy
173 /// Strategy flushes this update immediately while the Lazy Strategy queues
185 /// The Eager Strategy flushes this update immediately while the Lazy Strateg
[all...]
/third_party/typescript/tests/baselines/reference/
H A DgenericTypeAliases.js15 type Lazy<T> = T | (() => T);
17 var ls: Lazy<string>;
/third_party/node/deps/v8/src/codegen/
H A Dsource-position-table.h63 inline bool Lazy() const { return mode_ == LAZY_SOURCE_POSITIONS; } in Lazy() function in v8::internal::SourcePositionTableBuilder
/third_party/protobuf/csharp/src/Google.Protobuf/Reflection/
H A DFileDescriptor.cs81 private readonly Lazy<Dictionary<IDescriptor, DescriptorDeclaration>> declarations;
108 declarations = new Lazy<Dictionary<IDescriptor, DescriptorDeclaration>>(CreateDeclarationMap, LazyThreadSafetyMode.ExecutionAndPublication); in FileDescriptor()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFUnit.h141 DWARFSectionKind SectionKind, bool Lazy = false);
165 bool IsDWO, bool Lazy, DWARFSectionKind SectionKind);
H A DDWARFContext.h102 /// If \p Lazy is true, set up to parse but don't actually parse them.
104 void parseDWOUnits(bool Lazy = false);
/third_party/rust/crates/clap/src/
H A Dmacros.rs51 static CACHED: clap::__macro_refs::once_cell::sync::Lazy<String> =
52 clap::__macro_refs::once_cell::sync::Lazy::new(|| authors.replace(':', $sep));
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/DWARF/
H A DDWARFUnit.cpp50 bool Lazy) { in addUnitsForDWOSection()
55 D.getLineDWOSection(), C.isLittleEndian(), true, Lazy, in addUnitsForDWOSection()
64 bool Lazy, DWARFSectionKind SectionKind) { in addUnitsImpl()
66 // Lazy initialization of Parser, now that we have all section info. in addUnitsImpl()
96 if (Lazy) in addUnitsImpl()
47 addUnitsForDWOSection(DWARFContext &C, const DWARFSection &DWOSection, DWARFSectionKind SectionKind, bool Lazy) addUnitsForDWOSection() argument
59 addUnitsImpl( DWARFContext &Context, const DWARFObject &Obj, const DWARFSection &Section, const DWARFDebugAbbrev *DA, const DWARFSection *RS, const DWARFSection *LocSection, StringRef SS, const DWARFSection &SOS, const DWARFSection *AOS, const DWARFSection &LS, bool LE, bool IsDWO, bool Lazy, DWARFSectionKind SectionKind) addUnitsImpl() argument
H A DDWARFContext.cpp917 void DWARFContext::parseDWOUnits(bool Lazy) { in parseDWOUnits() argument
921 DWOUnits.addUnitsForDWOSection(*this, S, DW_SECT_INFO, Lazy); in parseDWOUnits()
925 DWOUnits.addUnitsForDWOSection(*this, S, DW_SECT_TYPES, Lazy); in parseDWOUnits()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/LTO/
H A DThinLTOCodeGenerator.cpp184 bool Lazy, in loadModuleFromInput()
189 Lazy ? Mod.getLazyModule(Context, in loadModuleFromInput()
200 if (!Lazy) in loadModuleFromInput()
212 /*Lazy=*/true, /*IsImporting*/ true); in crossImportIntoModule()
182 loadModuleFromInput(lto::InputFile *Input, LLVMContext &Context, bool Lazy, bool IsImporting) loadModuleFromInput() argument
/third_party/rust/crates/rust-openssl/openssl/src/ssl/
H A Dmod.rs86 use once_cell::sync::{Lazy, OnceCell};
544 static INDEXES: Lazy<Mutex<HashMap<TypeId, c_int>>> = Lazy::new(|| Mutex::new(HashMap::new()));
545 static SSL_INDEXES: Lazy<Mutex<HashMap<TypeId, c_int>>> = Lazy::new(|| Mutex::new(HashMap::new()));
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/lang/
H A DUCharacterCaseTest.java326 "The Quick Brown Fox Can't Jump Over The Lazy Dogs.", in TestTitleRegression()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/
H A DUCharacterCaseTest.java325 "The Quick Brown Fox Can't Jump Over The Lazy Dogs.", in TestTitleRegression()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
H A DCallSiteSplitting.cpp513 DomTreeUpdater DTU(&DT, DomTreeUpdater::UpdateStrategy::Lazy); in doCallSiteSplitting()
/third_party/node/deps/v8/src/interpreter/
H A Dbytecode-array-writer.cc69 DCHECK(!source_position_table_builder_.Lazy()); in ToSourcePositionTable()

Completed in 45 milliseconds

12