Home
last modified time | relevance | path

Searched refs:once (Results 1 – 9 of 9) 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/soong/cc/config/
Dx86_darwin_host.go125 once sync.Once member
137 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/make/tools/releasetools/
Dpylintrc59 # file where it should appear only once).You can also use "--disable=all" to
/build/make/tools/droiddoc/templates-ndk/assets/js/
Dandroid_3p-bundle.js2477 …)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f.Callbacks("once memory"),!0))h++,l.…
2479 …&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.status…