Searched defs:once (Results 1 - 25 of 49) sorted by last modified time

12

/external/valgrind/main/drd/tests/
H A Dtsan_unittest.cpp277 // An array of threads. Create/start/join all elements at once. {{{1
5083 static pthread_once_t once = PTHREAD_ONCE_INIT; member in namespace:test106
5091 pthread_once(&once, Init);
5095 pthread_once(&once, Init);
5967 // are reading from the entire array at once.
/external/sqlite/dist/orig/
H A Dsqlite3.c1130 ** object once the object has been registered.
1549 ** SQLite will never invoke xInit() more than once without an intervening
1960 ** But once the trigger or virtual table method ends, the value returned
3364 ** [prepared statement] S has been stepped at least once using
3460 ** SQL parameter is used more than once, second and subsequent
4332 ** called once for each invocation of the xStep callback and then one
4335 ** implementation is never called and xFinal() is called exactly once.
4416 ** once, when the metadata is discarded.
4822 ** It is intended that this variable be set once
4879 ** It is intended that this variable be set once
68550 int once = 1; local
115880 int once = 1; local
[all...]
/external/sqlite/dist/
H A Dsqlite3.c1130 ** object once the object has been registered.
1549 ** SQLite will never invoke xInit() more than once without an intervening
1960 ** But once the trigger or virtual table method ends, the value returned
3364 ** [prepared statement] S has been stepped at least once using
3460 ** SQL parameter is used more than once, second and subsequent
4332 ** called once for each invocation of the xStep callback and then one
4335 ** implementation is never called and xFinal() is called exactly once.
4416 ** once, when the metadata is discarded.
4822 ** It is intended that this variable be set once
4879 ** It is intended that this variable be set once
68570 int once = 1; local
115900 int once = 1; local
[all...]
/external/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/skia/gm/
H A Dcolormatrix.cpp19 bool once() const { function in class:SkDoOnce
44 if (fOnce.once()) {
/external/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/qemu/distrib/libselinux/src/
H A Dandroid.c495 static pthread_once_t once = PTHREAD_ONCE_INIT; variable
523 __selinux_once(once, seapp_context_init);
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/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);
H A Donce_unittest.cc40 #include <google/protobuf/stubs/once.h>
58 void SetOnces(ProtobufOnceType* once, ProtobufOnceType* recursive_once) { argument
59 once_ = once;
/external/pcre/dist/
H A Dpcre_jit_compile.c849 /* Set its value only once. */
8821 struct sljit_jump *once = NULL; local
8963 once = JUMP(SLJIT_JUMP);
9204 JUMPHERE(once);
/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/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.cpp567 const SelectionDAG *G, VisitedSDNodeSet &once) {
568 if (!once.insert(N)) // If we've been here before, return now.
585 once.insert(child);
598 DumpNodesr(OS, child, indent+2, G, once);
603 VisitedSDNodeSet once; local
604 DumpNodesr(dbgs(), this, 0, nullptr, once); local
608 VisitedSDNodeSet once; local
609 DumpNodesr(dbgs(), this, 0, G, once); local
566 DumpNodesr(raw_ostream &OS, const SDNode *N, unsigned indent, const SelectionDAG *G, VisitedSDNodeSet &once) argument
/external/libvpx/libvpx/vpx_ports/
H A Dvpx_once.h19 static void once(void (*func)(void)) function
78 static void once(void (*func)(void)) function
91 static void once(void (*func)(void)) function
/external/libselinux/src/
H A Dandroid.c502 static pthread_once_t once = PTHREAD_ONCE_INIT; variable
530 __selinux_once(once, seapp_context_init);
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/libcap-ng/libcap-ng-0.7/src/
H A Dcap-ng.c896 int once = 0, cnt = 0; local
908 if (once == 0) {
910 once++;
915 if (once == 0) {
920 once++;
928 if (once == 0) {
/external/iputils/
H A Dping.c873 static int once; local
878 if (once++ == 1)
880 if (once == 1)
1374 static int once; local
1390 if (once || using_ping_socket)
1392 once = 1;
H A Dping6.c1778 static int once; local
1793 if (once)
1795 once = 1;
/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/easymock/src/org/easymock/internal/
H A DMocksControl.java236 public IExpectationSetters<Object> once() { method in class:MocksControl
/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;

Completed in 1083 milliseconds

12