Searched refs:once (Results 1 – 11 of 11) sorted by relevance
/build/soong/android/ |
D | onceper.go | 28 func (once *OncePer) maybeWaitFor(key OnceKey, value interface{}) interface{} { 33 value, _ = once.values.Load(key) 45 func (once *OncePer) Once(key OnceKey, value func() interface{}) interface{} { 47 if v, ok := once.values.Load(key); ok { 48 return once.maybeWaitFor(key, v) 53 if v, loaded := once.values.LoadOrStore(key, waiter); loaded { 55 return once.maybeWaitFor(key, v) 62 once.values.Store(key, v) 73 func (once *OncePer) Get(key OnceKey) interface{} { 74 v, ok := once.values.Load(key) [all …]
|
D | onceper_test.go | 23 once := OncePer{} 26 a := once.Once(key, func() interface{} { return "a" }).(string) 27 b := once.Once(key, func() interface{} { return "b" }).(string) 39 once := OncePer{} 44 …go once.Once(key, func() interface{} { close(ch); time.Sleep(100 * time.Millisecond); return "foo"… 46 a := once.Once(key, func() interface{} { return "bar" }).(string) 54 once := OncePer{} 57 a := once.Once(key, func() interface{} { return "a" }).(string) 58 b := once.Get(key).(string) 70 once := OncePer{} [all …]
|
/build/bazel/examples/android_app/java/com/app/ |
D | jni_dep.h | 17 #pragma once
|
/build/soong/cc/config/ |
D | x86_darwin_host.go | 126 once sync.Once member 138 macTools.once.Do(func() {
|
/build/soong/ui/build/ |
D | sandbox_linux.go | 54 once sync.Once 73 sandboxConfig.once.Do(func() {
|
/build/make/ |
D | Usage.txt | 55 (after running the build once), split among these two files: 69 -j <N> Run <N> processes at once 70 -j Autodetect the number of processes to run at once,
|
/build/soong/docs/ |
D | clion.md | 38 ### Edit multiple projects at once
|
D | perf.md | 172 spent of 13.137 secounds. While Android-aosp_arm.mk was only included once, and
|
/build/bazel/rules_cc/examples/ |
D | experimental_cc_shared_library.bzl | 15 # else that may cause issues when being linked more than once. This should be 39 "only be linked once, e.g. because they have static " + 40 "initializers. If we try to link them more than once, " +
|
/build/make/core/ |
D | product_config.rbc | 107 stash = [] # Configs to push once their descendants are done 176 # Ready once
|
/build/make/tools/releasetools/ |
D | pylintrc | 59 # file where it should appear only once).You can also use "--disable=all" to
|