/external/skia/src/ports/ |
H A D | SkGlobalInitialization_chromium.cpp | 123 SK_DECLARE_STATIC_ONCE(once); variable 125 SkOnce(&once, SkPrivateEffectInitializer::Init);
|
H A D | SkGlobalInitialization_default.cpp | 123 SK_DECLARE_STATIC_ONCE(once); variable 125 SkOnce(&once, SkPrivateEffectInitializer::Init);
|
/external/protobuf/src/google/protobuf/stubs/ |
H A D | once.cc | 33 // emulates google3/base/once.h 38 #include <google/protobuf/stubs/once.h> 65 void GoogleOnceInitImpl(ProtobufOnceType* once, Closure* closure) { argument 66 internal::AtomicWord state = internal::Acquire_Load(once); 71 // The closure execution did not complete yet. The once object can be in one 79 once, ONCE_STATE_UNINITIALIZED, ONCE_STATE_EXECUTING_CLOSURE); 84 internal::Release_Store(once, ONCE_STATE_DONE); 91 state = internal::Acquire_Load(once);
|
H A D | once.h | 33 // emulates google3/base/once.h 46 // * A function GoogleOnceInit(ProtobufOnceType* once, void (*init_func)()). 65 // // Calls Init() exactly once. 93 inline void GoogleOnceInit(ProtobufOnceType* once, void (*init_func)()) { argument 94 if (!*once) { 95 *once = true; 101 inline void GoogleOnceInit(ProtobufOnceType* once, void (*init_func)(Arg), argument 103 if (!*once) { 104 *once = true; 122 void GoogleOnceInitImpl(ProtobufOnceType* once, Closur [all...] |
H A D | once_unittest.cc | 40 #include <google/protobuf/stubs/once.h> 58 void SetOnces(ProtobufOnceType* once, ProtobufOnceType* recursive_once) { argument 59 once_ = once;
|
/external/v8/src/base/ |
H A D | once.cc | 5 #include "src/base/once.h" 18 void CallOnceImpl(OnceType* once, PointerArgFunction init_func, void* arg) { argument 19 AtomicWord state = Acquire_Load(once); 25 // The function execution did not complete yet. The once object can be in one 33 once, ONCE_STATE_UNINITIALIZED, ONCE_STATE_EXECUTING_FUNCTION); 38 Release_Store(once, ONCE_STATE_DONE); 48 state = Acquire_Load(once);
|
H A D | once.h | 5 // emulates google3/base/once.h 16 // * A function CallOnce(OnceType* once, void (*init_func)()). 39 // // Calls Init() exactly once. 80 void CallOnceImpl(OnceType* once, PointerArgFunction init_func, void* arg); 82 inline void CallOnce(OnceType* once, NoArgFunction init_func) { argument 83 if (Acquire_Load(once) != ONCE_STATE_DONE) { 84 CallOnceImpl(once, reinterpret_cast<PointerArgFunction>(init_func), NULL); 90 inline void CallOnce(OnceType* once, argument 92 if (Acquire_Load(once) != ONCE_STATE_DONE) { 93 CallOnceImpl(once, reinterpret_cas [all...] |
H A D | lazy-instance.h | 9 // be called once, even if two threads are racing to create the object. Get() 50 // which is explicitly called once. 72 #include "src/base/once.h" 147 static void Init(OnceType* once, Function function, Storage storage) { argument 148 CallOnce(once, function, storage); 156 static void Init(OnceType* once, Function function, Storage storage) { argument 157 if (*once == ONCE_STATE_UNINITIALIZED) { 159 *once = ONCE_STATE_DONE;
|
/external/libvpx/libvpx/vpx_ports/ |
H A D | vpx_once.h | 19 static void once(void (*func)(void)) function 79 static void once(void (*func)(void)) function 105 static void once(void (*func)(void)) function 118 static void once(void (*func)(void)) function
|
/external/libselinux/src/ |
H A D | checkAccess.c | 10 static pthread_once_t once = PTHREAD_ONCE_INIT; variable 27 __selinux_once(once, avc_init_once);
|
/external/openfst/src/include/fst/ |
H A D | lock.h | 40 inline int FstOnceInit(FstOnceType *once, void (*init)(void)) { argument 41 if (*once) 43 *once = 0;
|
/external/skia/tests/ |
H A D | OnceTest.cpp | 39 SkOnceFlag* once; member in class:__anon14132::Racer 43 SkOnce(once, add_six, ptr); 57 racers[i].once = &mt_once;
|
/external/boringssl/src/crypto/ |
H A D | thread_none.c | 35 void CRYPTO_once(CRYPTO_once_t *once, void (*init)(void)) { argument 36 if (*once) { 39 *once = 1;
|
H A D | internal.h | 347 /* CRYPTO_once calls |init| exactly once per process. This is thread-safe: if 350 * called once. 352 * The |once| argument must be a |CRYPTO_once_t| that has been initialised with 354 OPENSSL_EXPORT void CRYPTO_once(CRYPTO_once_t *once, void (*init)(void)); 399 CRYPTO_once_t once; member in struct:CRYPTO_STATIC_MUTEX 468 * given index. This function should only be called once per thread for a given
|
H A D | thread_pthread.c | 76 void CRYPTO_once(CRYPTO_once_t *once, void (*init)(void)) { argument 77 pthread_once(once, init);
|
H A D | thread_win.c | 35 volatile LONG *once = in_once; local 38 assert((((uintptr_t) once) & 3) == 0); 40 /* This assumes that reading *once has acquire semantics. This should be true 43 #error "Windows once code may not work on other platforms." \ 46 if (*once == 1) { 51 switch (InterlockedCompareExchange(once, 2, 0)) { 57 InterlockedExchange(once, 1); 123 run_once(&lock->once, static_lock_init, lock);
|
/external/skia/include/core/ |
H A D | SkOnce.h | 16 // together to create a threadsafe way to call a function just once. E.g. 23 // SK_DECLARE_STATIC_ONCE(once); 24 // SkOnce(&once, register_my_stuff, GetGlobalRegistry()); 27 // No matter how many times you call EnsureRegistered(), register_my_stuff will be called just once. 38 inline void SkOnce(SkOnceFlag* once, void (*f)()); 41 inline void SkOnce(SkOnceFlag* once, void (*f)(Arg), Arg arg); 119 inline void SkOnce(SkOnceFlag* once, void (*f)(Arg), Arg arg) { argument 120 return SkOnce(once->mutableDone(), once, f, arg); 130 inline void SkOnce(SkOnceFlag* once, voi argument [all...] |
/external/easymock/src/org/easymock/ |
H A D | IExpectationSetters.java | 132 * Expect the last invocation once. This is default in EasyMock.
136 IExpectationSetters<T> once();
method in interface:IExpectationSetters 139 * Expect the last invocation at least once.
|
/external/mesa3d/src/mapi/mapi/ |
H A D | stub.c | 59 static pthread_once_t once = PTHREAD_ONCE_INIT; local 60 pthread_once(&once, entry_patch_public);
|
/external/selinux/libselinux/src/ |
H A D | checkAccess.c | 10 static pthread_once_t once = PTHREAD_ONCE_INIT; variable 27 __selinux_once(once, avc_init_once);
|
H A D | procattr.c | 22 static pthread_once_t once = PTHREAD_ONCE_INIT; variable 120 __selinux_once(once, init_procattr); 220 __selinux_once(once, init_procattr);
|
/external/skia/src/utils/win/ |
H A D | SkDWrite.cpp | 44 SK_DECLARE_STATIC_ONCE(once); variable 46 SkOnce(&once, create_dwrite_factory, &gDWriteFactory);
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAGDumper.cpp | 573 const SelectionDAG *G, VisitedSDNodeSet &once) { 574 if (!once.insert(N).second) // If we've been here before, return now. 591 once.insert(child); 604 DumpNodesr(OS, child, indent+2, G, once); 609 VisitedSDNodeSet once; local 610 DumpNodesr(dbgs(), this, 0, nullptr, once); local 614 VisitedSDNodeSet once; local 615 DumpNodesr(dbgs(), this, 0, G, once); local 572 DumpNodesr(raw_ostream &OS, const SDNode *N, unsigned indent, const SelectionDAG *G, VisitedSDNodeSet &once) argument
|
/external/skia/gm/ |
H A D | colormatrix.cpp | 19 bool once() const { function in class:SkDoOnce 44 if (fOnce.once()) {
|
/external/easymock/src/org/easymock/internal/ |
H A D | MocksControl.java | 236 public IExpectationSetters<Object> once() {
method in class:MocksControl
|