Home
last modified time | relevance | path

Searched refs:once (Results 1 – 11 of 11) sorted by relevance

/build/soong/android/
Donceper.go28 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 …]
Donceper_test.go23 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/
Djni_dep.h17 #pragma once
/build/soong/cc/config/
Dx86_darwin_host.go126 once sync.Once member
138 macTools.once.Do(func() {
/build/soong/ui/build/
Dsandbox_linux.go54 once sync.Once
73 sandboxConfig.once.Do(func() {
/build/make/
DUsage.txt55 (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/
Dclion.md38 ### Edit multiple projects at once
Dperf.md172 spent of 13.137 secounds. While Android-aosp_arm.mk was only included once, and
/build/bazel/rules_cc/examples/
Dexperimental_cc_shared_library.bzl15 # 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/
Dproduct_config.rbc107 stash = [] # Configs to push once their descendants are done
176 # Ready once
/build/make/tools/releasetools/
Dpylintrc59 # file where it should appear only once).You can also use "--disable=all" to