HomeSort by relevance Sort by last modified time
    Searched defs:Once (Results 1 - 7 of 7) sorted by null

  /prebuilts/go/darwin-x86/src/sync/
once.go 11 // Once is an object that will perform exactly one action.
12 type Once struct {
18 // first time for this instance of Once. In other words, given
19 // var once Once
20 // if once.Do(f) is called multiple times, only the first call will invoke f,
22 // Once is required for each function to execute.
24 // Do is intended for initialization that must be run exactly once. Since f
27 // config.once.Do(func() { config.init(filename) })
35 func (o *Once) Do(f func())
    [all...]
  /prebuilts/go/linux-x86/src/sync/
once.go 11 // Once is an object that will perform exactly one action.
12 type Once struct {
18 // first time for this instance of Once. In other words, given
19 // var once Once
20 // if once.Do(f) is called multiple times, only the first call will invoke f,
22 // Once is required for each function to execute.
24 // Do is intended for initialization that must be run exactly once. Since f
27 // config.once.Do(func() { config.init(filename) })
35 func (o *Once) Do(f func())
    [all...]
  /build/soong/android/
onceper.go 29 // Once computes a value the first time it is called with a given key per OncePer, and returns the
31 func (once *OncePer) Once(key interface{}, value func() interface{}) interface{} {
35 m, _ := once.values.Load().(valueMap)
40 once.valuesLock.Lock()
41 defer once.valuesLock.Unlock()
44 m, _ = once.values.Load().(valueMap)
58 once.values.Store(newMap)
63 func (once *OncePer) OnceStringSlice(key interface{}, value func() []string) []string {
64 return once.Once(key, func() interface{} { return value() }).([]string
    [all...]
  /toolchain/binutils/binutils-2.25/gold/
gold-threads.h 195 // A class used to do something once. This is an abstract parent
198 class Once
201 Once();
204 ~Once()
209 // setting the argument would itself require a Once class.
230 // The lock to run the function only once.
234 // A class used to initialize a lock exactly once, after the options
242 class Initialize_lock : public Once
gold-threads.cc 282 // structure for Once.
319 // A pointer to Once structure we want to run. Access to this is
322 static Once* once_pointer;
324 // The argument to pass to the Once structure. Access to this is
329 // A routine passed to pthread_once which runs the Once pointer.
344 // Class Once.
346 Once::Once()
359 // Run the function once.
362 Once::run_once(void* arg
    [all...]
  /frameworks/compile/slang/
slang_rs_object_ref_count.cpp 137 unsigned Once = 0;
150 if ((*bI == S) && !Once) {
151 Once++;
159 slangAssert(Once <= 1);
163 slangAssert(Once == 0);
546 // Sub-structs should only count once (as should arrays, etc.)
    [all...]
  /prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/
winnt.h     [all...]

Completed in 965 milliseconds