Searched defs:once (Results 1 - 25 of 49) sorted by path

12

/external/chromium_org/chrome/third_party/mock4js/
H A Dmock4js.js27 object.once = function() {
155 var msg = "expected once";
186 var desc = "expected at least once";
/external/chromium_org/net/base/
H A Dnss_memio.c24 Simple private circular buffer class. Size cannot be changed once allocated.
378 static PRCallOnceType once; local
380 PR_CallOnce(&once, memio_InitializeLayerName);
/external/chromium_org/net/third_party/nss/ssl/
H A Dssl3ecc.c159 int error; /* error code of the call-once function */
160 PRCallOnceType once; member in struct:ECDHEKeyPairStr
514 /* CallOnce function, called once for each named curve. */
569 status = PR_CallOnce(&gECDHEKeyPairs[ec_noName].once, ssl3_ECRegister);
574 status = PR_CallOnceWithArg(&gECDHEKeyPairs[ec_curve].once,
H A Dsslerrstrs.c27 static PRCallOnceType once; variable
32 return (PR_SUCCESS == PR_CallOnce(&once, ssl_InitializePRErrorTableOnce))
/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.h100 void InitOnceImpl(OnceType* once, void (*initializer)());
102 static inline void InitOnce(OnceType* once, void (*initializer)()) { argument
103 if (::base::subtle::Acquire_Load(once) != ONCE_STATE_DONE)
104 InitOnceImpl(once, initializer);
/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::__anon12467::BytewiseComparatorImpl
77 port::InitOnce(&once, InitModule);
H A Denv_posix.cc598 static pthread_once_t once = PTHREAD_ONCE_INIT; member in namespace:leveldb
603 pthread_once(&once, InitDefaultEnv);
/external/chromium_org/third_party/libvpx/source/libvpx/vpx_ports/
H A Dvpx_once.h19 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/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/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;
122 void GoogleOnceInitImpl(ProtobufOnceType* once, Closur
[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/third_party/skia/gm/
H A Dcolormatrix.cpp19 bool once() const { function in class:SkDoOnce
44 if (fOnce.once()) {
/external/chromium_org/third_party/skia/include/core/
H A DSkOnce.h16 // 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.
39 inline void SkOnce(SkOnceFlag* once, void (*f)());
42 inline void SkOnce(SkOnceFlag* once, void (*f)(Arg), Arg arg);
124 inline void SkOnce(SkOnceFlag* once, void (*f)(Arg), Arg arg) { argument
125 return SkOnce(once->mutableDone(), once, f, arg);
135 inline void SkOnce(SkOnceFlag* once, voi argument
[all...]
/external/chromium_org/third_party/skia/tests/
H A DOnceTest.cpp19 SK_DECLARE_STATIC_ONCE(once);
21 SkOnce(&once, add_five, &x);
22 SkOnce(&once, add_five, &x);
23 SkOnce(&once, add_five, &x);
24 SkOnce(&once, add_five, &x);
25 SkOnce(&once, add_five, &x);
36 SkOnceFlag* once; member in class:Racer
40 SkOnce(once, add_six, ptr);
49 SK_DECLARE_STATIC_ONCE(once);
52 racers[i].once
[all...]
/external/chromium_org/third_party/sqlite/src/tool/
H A Dlemon.c512 ** This routine is called once for each lookahead for a particular
2509 ** in the entire input file (all at once) then tokenizes it. Each
3916 int once = 1; local
3920 if( once ){
3922 once = 0;
3934 int once = 1; local
3939 if( once ){
3941 once = 0;
/external/chromium_org/third_party/tcmalloc/chromium/src/
H A Dmalloc_hook.cc92 pthread_once_t once = PTHREAD_ONCE_INIT; member in namespace:__anon15564
116 perftools_pthread_once(&once, &RemoveInitialHooksAndCallInitializers);
126 perftools_pthread_once(&once, &RemoveInitialHooksAndCallInitializers);
131 perftools_pthread_once(&once, &RemoveInitialHooksAndCallInitializers);
135 // This function is called at most once by one of the above initial malloc
/external/chromium_org/third_party/tcmalloc/vendor/src/
H A Dmalloc_hook.cc92 pthread_once_t once = PTHREAD_ONCE_INIT; member in namespace:__anon15607
116 perftools_pthread_once(&once, &RemoveInitialHooksAndCallInitializers);
126 perftools_pthread_once(&once, &RemoveInitialHooksAndCallInitializers);
131 perftools_pthread_once(&once, &RemoveInitialHooksAndCallInitializers);
135 // This function is called at most once by one of the above initial malloc
/external/chromium_org/third_party/usrsctp/usrsctplib/netinet/
H A Dsctp_timer.c184 int once; local
327 once = 0;
339 once++;
340 if (once > 1) {
368 once = 0;
376 once++;
377 if (once > 1) {
/external/chromium_org/third_party/webrtc/common_audio/signal_processing/
H A Dspl_init.c124 static void once(void (*func)(void)) { function
132 static void once(void (*func)(void)) { function
158 once(InitFunctionPointers);
/external/chromium_org/v8/src/base/
H A Dlazy-instance.h9 // 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;
H A Donce.cc5 #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 Donce.h5 // 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...]

Completed in 9233 milliseconds

12