Searched defs:once (Results 1 - 25 of 43) sorted by relevance

12

/external/chromium_org/net/third_party/nss/ssl/
H A Dsslerrstrs.c27 static PRCallOnceType once; variable
32 return (PR_SUCCESS == PR_CallOnce(&once, ssl_InitializePRErrorTableOnce))
/external/chromium_org/third_party/protobuf/src/google/protobuf/stubs/
H A Donce.cc33 // 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 Donce.h33 // 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;
121 LIBPROTOBUF_EXPORT void GoogleOnceInitImpl(ProtobufOnceType* once,
[all...]
H A Donce_unittest.cc40 #include <google/protobuf/stubs/once.h>
58 void SetOnces(ProtobufOnceType* once, ProtobufOnceType* recursive_once) { argument
59 once_ = once;
/external/chromium_org/v8/src/
H A Donce.cc28 #include "once.h"
42 void CallOnceImpl(OnceType* once, PointerArgFunction init_func, void* arg) { argument
43 AtomicWord state = Acquire_Load(once);
49 // The function execution did not complete yet. The once object can be in one
57 once, ONCE_STATE_UNINITIALIZED, ONCE_STATE_EXECUTING_FUNCTION);
62 Release_Store(once, ONCE_STATE_DONE);
72 state = Acquire_Load(once);
H A Donce.h28 // emulates google3/base/once.h
39 // * A function CallOnce(OnceType* once, void (*init_func)()).
62 // // Calls Init() exactly once.
103 void CallOnceImpl(OnceType* once, PointerArgFunction init_func, void* arg);
105 inline void CallOnce(OnceType* once, NoArgFunction init_func) { argument
106 if (Acquire_Load(once) != ONCE_STATE_DONE) {
107 CallOnceImpl(once, reinterpret_cast<PointerArgFunction>(init_func), NULL);
113 inline void CallOnce(OnceType* once, argument
115 if (Acquire_Load(once) != ONCE_STATE_DONE) {
116 CallOnceImpl(once, reinterpret_cas
[all...]
H A Dlazy-instance.h32 // be called once, even if two threads are racing to create the object. Get()
73 // which is explicitly called once.
94 #include "once.h"
173 static void Init(OnceType* once, Function function, Storage storage) { argument
174 CallOnce(once, function, storage);
182 static void Init(OnceType* once, Function function, Storage storage) { argument
183 if (*once == ONCE_STATE_UNINITIALIZED) {
185 *once = ONCE_STATE_DONE;
/external/libvpx/libvpx/vpx_ports/
H A Dvpx_once.h15 static void once(void (*func)(void)) function
74 static void once(void (*func)(void)) function
87 static void once(void (*func)(void)) function
/external/v8/src/
H A Donce.cc28 #include "once.h"
42 void CallOnceImpl(OnceType* once, PointerArgFunction init_func, void* arg) { argument
43 AtomicWord state = Acquire_Load(once);
49 // The function execution did not complete yet. The once object can be in one
57 once, ONCE_STATE_UNINITIALIZED, ONCE_STATE_EXECUTING_FUNCTION);
62 Release_Store(once, ONCE_STATE_DONE);
72 state = Acquire_Load(once);
H A Donce.h28 // emulates google3/base/once.h
39 // * A function CallOnce(OnceType* once, void (*init_func)()).
62 // // Calls Init() exactly once.
103 void CallOnceImpl(OnceType* once, PointerArgFunction init_func, void* arg);
105 inline void CallOnce(OnceType* once, NoArgFunction init_func) { argument
106 if (Acquire_Load(once) != ONCE_STATE_DONE) {
107 CallOnceImpl(once, reinterpret_cast<PointerArgFunction>(init_func), NULL);
113 inline void CallOnce(OnceType* once, argument
115 if (Acquire_Load(once) != ONCE_STATE_DONE) {
116 CallOnceImpl(once, reinterpret_cas
[all...]
H A Dlazy-instance.h32 // be called once, even if two threads are racing to create the object. Get()
90 #include "once.h"
169 static void Init(OnceType* once, Function function, Storage storage) { argument
170 CallOnce(once, function, storage);
178 static void Init(OnceType* once, Function function, Storage storage) { argument
179 if (*once == ONCE_STATE_UNINITIALIZED) {
181 *once = ONCE_STATE_DONE;
/external/protobuf/src/google/protobuf/stubs/
H A Donce.h33 // emulates google3/base/once.h
46 // * A function GogoleOnceInit(ProtobufOnceType* once, void (*init_func)()).
59 // // Calls Init() exactly once.
100 inline void GoogleOnceInit(ProtobufOnceType* once, void (*init_func)()) { argument
102 if (!once->initialized_) {
103 once->Init(init_func);
114 inline void GoogleOnceInit(ProtobufOnceType* once, void (*init_func)()) {
115 pthread_once(once, init_func);
/external/libselinux/src/
H A DcheckAccess.c8 static pthread_once_t once = PTHREAD_ONCE_INIT; variable
26 __selinux_once(once, avc_init_once);
H A Dstringrep.c24 static pthread_once_t once = PTHREAD_ONCE_INIT; variable
/external/openfst/src/include/fst/
H A Dlock.h40 inline int FstOnceInit(FstOnceType *once, void (*init)(void)) { argument
41 if (*once)
43 *once = 0;
/external/chromium_org/third_party/leveldatabase/src/port/
H A Dport_posix.cc49 void InitOnce(OnceType* once, void (*initializer)()) { argument
50 PthreadCall("once", pthread_once(once, initializer));
/external/chromium_org/third_party/leveldatabase/src/util/
H A Dcomparator.cc69 static port::OnceType once = LEVELDB_ONCE_INIT; member in class:leveldb::__anon11275::BytewiseComparatorImpl
77 port::InitOnce(&once, InitModule);
/external/chromium_org/third_party/leveldatabase/port/
H A Dport_chromium.cc53 void InitOnceImpl(OnceType* once, void (*initializer)()) { argument
54 OnceType state = ::base::subtle::Acquire_Load(once);
59 once,
66 ::base::subtle::Release_Store(once, ONCE_STATE_DONE);
71 state = ::base::subtle::Acquire_Load(once);
H A Dport_chromium.h99 void InitOnceImpl(OnceType* once, void (*initializer)());
101 static inline void InitOnce(OnceType* once, void (*initializer)()) { argument
102 if (::base::subtle::Acquire_Load(once) != ONCE_STATE_DONE)
103 InitOnceImpl(once, initializer);
/external/chromium_org/third_party/mesa/src/src/mapi/mapi/
H A Dstub.c59 static pthread_once_t once = PTHREAD_ONCE_INIT; local
60 pthread_once(&once, entry_patch_public);
/external/easymock/src/org/easymock/
H A DIExpectationSetters.java132 * 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 Dstub.c59 static pthread_once_t once = PTHREAD_ONCE_INIT; local
60 pthread_once(&once, entry_patch_public);
/external/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGDumper.cpp547 const SelectionDAG *G, VisitedSDNodeSet &once) {
548 if (!once.insert(N)) // If we've been here before, return now.
565 once.insert(child);
578 DumpNodesr(OS, child, indent+2, G, once);
583 VisitedSDNodeSet once; local
584 DumpNodesr(dbgs(), this, 0, 0, once); local
588 VisitedSDNodeSet once; local
589 DumpNodesr(dbgs(), this, 0, G, once); local
546 DumpNodesr(raw_ostream &OS, const SDNode *N, unsigned indent, const SelectionDAG *G, VisitedSDNodeSet &once) argument
/external/skia/gm/
H A Dcolormatrix.cpp19 bool once() const { function in class:SkOnce
44 if (fOnce.once()) {
/external/chromium/net/base/
H A Dnss_memio.c24 Simple private circular buffer class. Size cannot be changed once allocated.
357 static PRCallOnceType once; local
359 PR_CallOnce(&once, memio_InitializeLayerName);

Completed in 638 milliseconds

12