Home
last modified time | relevance | path

Searched refs:once (Results 1 - 25 of 2669) sorted by relevance

12345678910>>...107

/third_party/skia/tests/
H A DOnceTest.cpp20 SkOnce once; in DEF_TEST() local
21 once(add_five, &x); in DEF_TEST()
22 once(add_five, &x); in DEF_TEST()
23 once(add_five, &x); in DEF_TEST()
24 once(add_five, &x); in DEF_TEST()
25 once(add_five, &x); in DEF_TEST()
34 SkOnce once; in DEF_TEST() local
36 once([&] { x += 6; }); in DEF_TEST()
47 SkOnce once; in DEF_TEST() local
48 once(inc_g in DEF_TEST()
[all...]
/third_party/vk-gl-cts/android/cts/runner/tests/src/com/drawelements/deqp/runner/
H A DDeqpTestRunnerTest.java241 andReturn("").once(); in testGlesVersion()
243 andReturn("").once(); in testGlesVersion()
245 andReturn("").once(); in testGlesVersion()
247 andReturn("").once(); in testGlesVersion()
265 EasyMock.expectLastCall().once(); in testGlesVersion()
268 EasyMock.expectLastCall().once(); in testGlesVersion()
271 EasyMock.expectLastCall().once(); in testGlesVersion()
274 EasyMock.expectLastCall().once(); in testGlesVersion()
391 EasyMock.expectLastCall().once(); in testResultCode()
395 andReturn("").once(); in testResultCode()
[all...]
/third_party/node/test/parallel/
H A Dtest-process-beforeexit.js26 process.once('beforeExit', common.mustCall(tryImmediate));
30 process.once('beforeExit', common.mustCall(tryTimer));
36 process.once('beforeExit', common.mustCall(tryListen));
45 process.once('beforeExit', common.mustCall(tryRepeatedTimer));
62 process.once('beforeExit', common.mustCall(tryNextTickSetImmediate));
71 process.once('beforeExit', common.mustCall(tryNextTick));
79 process.once('beforeExit', common.mustNotCall());
H A Dtest-nodeeventtarget.js34 eventTarget.addEventListener('foo', ev2, { once: true });
61 strictEqual(eventTarget.once('foo', ev2, { once: true }), eventTarget);
88 eventTarget.once('foo', ev2, { once: true });
112 eventTarget.once('foo', ev2, { once: true });
113 eventTarget.once('foo', ev2, { once: false });
153 }), { once
[all...]
H A Dtest-event-emitter-once.js29 e.once('hello', common.mustCall());
37 assert.fail('once->foo should not be emitted');
40 e.once('foo', remove);
44 e.once('e', common.mustCall(function() {
48 e.once('e', common.mustCall());
53 // once() has different code paths based on the number of arguments being
64 ee.once('foo', common.mustCall((...params) => {
H A Dtest-cluster-worker-disconnect.js59 worker.once('listening', common.mustCall(() => {
65 cluster.once('disconnect', common.mustCall(() => {
68 cluster.once('exit', common.mustCall(() => {
73 worker.once('disconnect', common.mustCall(() => {
80 worker.once('exit', common.mustCall((code) => {
86 process.once('exit', () => {
H A Dtest-inspector-open.js23 child.once('message', common.mustCall((msg) => {
27 child.once('message', common.mustCall(firstOpen));
38 child.once('message', common.mustCall(tryToOpenWhenOpen));
50 child.once('message', common.mustCall(closeWhenOpen));
60 child.once('message', common.mustCall(tryToCloseWhenClosed));
68 child.once('message', common.mustCall(reopenAfterClose));
H A Dtest-http2-empty-frame-without-eof.js8 const { once } = require('events');
13 socket.once('data', () => {
17 await once(server, 'listening');
40 stream.once('close', resolve);
H A Dtest-child-process-fork-dgram.js41 process.once('message', (msg, clusterServer) => {
44 childServer.once('message', () => {
62 parentServer.once('message', (msg, rinfo) => {
105 process.once('exit', () => {
H A Dtest-https-agent-abort-controller.js8 const { once } = require('events');
38 const [err] = await once(connection, 'error');
47 const [err] = await once(connection, 'error');
63 const [err] = await once(request, 'error');
78 const [err] = await once(request, 'error');
H A Dtest-http-client-readable.js32 let once = false;
35 if (once)
37 once = true;
H A Dtest-event-emitter-remove-listeners.js54 ee.once('removeListener', common.mustCall((name, cb) => {
61 ee.once('removeListener', common.mustCall((name, cb) => {
95 ee.once('removeListener', common.mustCall((name, cb) => {
99 ee.once('removeListener', common.mustCall((name, cb) => {
133 ee.once('hello', listener1);
H A Dtest-inspector-contexts.js16 return new Promise((resolve) => session.once(method, resolve));
53 session.once('Runtime.executionContextDestroyed',
82 session.once('Runtime.executionContextDestroyed',
111 session.once('Runtime.executionContextDestroyed',
129 console.log('Context destroyed once again.');
137 session.once('Runtime.executionContextDestroyed',
/third_party/node/deps/v8/src/base/
H A Donce.h5 // emulates google3/base/once.h
16 // * A function CallOnce(OnceType* once, void (*init_func)()).
39 // // Calls Init() exactly once.
86 V8_BASE_EXPORT void CallOnceImpl(OnceType* once,
89 inline void CallOnce(OnceType* once, std::function<void()> init_func) { in CallOnce() argument
90 if (once->load(std::memory_order_acquire) != ONCE_STATE_DONE) { in CallOnce()
91 CallOnceImpl(once, init_func); in CallOnce()
97 inline void CallOnce(OnceType* once, in CallOnce() argument
100 if (once->load(std::memory_order_acquire) != ONCE_STATE_DONE) { in CallOnce()
101 CallOnceImpl(once, [ in CallOnce()
[all...]
H A Donce.cc5 #include "src/base/once.h"
18 void CallOnceImpl(OnceType* once, std::function<void()> init_func) { in CallOnceImpl() argument
20 if (once->load(std::memory_order_acquire) == ONCE_STATE_DONE) { in CallOnceImpl()
24 // The function execution did not complete yet. The once object can be in one in CallOnceImpl()
32 if (once->compare_exchange_strong(expected, ONCE_STATE_EXECUTING_FUNCTION, in CallOnceImpl()
37 once->store(ONCE_STATE_DONE, std::memory_order_release); in CallOnceImpl()
41 while (once->load(std::memory_order_acquire) == in CallOnceImpl()
/third_party/node/deps/openssl/openssl/include/internal/
H A Dthread_once.h12 # pragma once
25 * once. It takes no arguments and returns an int result (1 for success or
48 * once that has been defined in another file via DEFINE_RUN_ONCE().
56 * exactly once. This function will be declared as static within the file. It
86 * ever be called - and that function will be called exactly once. Definition
120 * @once: pointer to static object of type CRYPTO_ONCE
129 # define RUN_ONCE(once, init) \
130 (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
135 * @once: pointer to static object of type CRYPTO_ONCE
147 # define RUN_ONCE_ALT(once, inital
[all...]
/third_party/openssl/include/internal/
H A Dthread_once.h12 # pragma once
25 * once. It takes no arguments and returns an int result (1 for success or
48 * once that has been defined in another file via DEFINE_RUN_ONCE().
56 * exactly once. This function will be declared as static within the file. It
86 * ever be called - and that function will be called exactly once. Definition
120 * @once: pointer to static object of type CRYPTO_ONCE
129 # define RUN_ONCE(once, init) \
130 (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
135 * @once: pointer to static object of type CRYPTO_ONCE
147 # define RUN_ONCE_ALT(once, inital
[all...]
/third_party/openssl/ohos_lite/include/internal/
H A Dthread_once.h14 * once. It takes no arguments and returns and int result (1 for success or
37 * once that has been defined in another file via DEFINE_RUN_ONCE().
45 * exactly once. This function will be declared as static within the file. It
75 * ever be called - and that function will be called exactly once. Definition
109 * @once: pointer to static object of type CRYPTO_ONCE
118 #define RUN_ONCE(once, init) \
119 (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
124 * @once: pointer to static object of type CRYPTO_ONCE
136 #define RUN_ONCE_ALT(once, initalt, init) \
137 (CRYPTO_THREAD_run_once(once, inital
[all...]
/third_party/skia/third_party/externals/angle2/src/common/apple/
H A DSoftLinking.h41 static dispatch_once_t once = 0; \
43 dispatch_once(&once, ^{ \
69 static dispatch_once_t once; \
70 dispatch_once(&once, ^{ \
93 static dispatch_once_t once; \
94 dispatch_once(&once, ^{ \
/third_party/node/benchmark/events/
H A Dee-once.js20 ee.once(dummy, listener);
29 ee.once(dummy, listener);
38 ee.once(dummy, listener);
47 ee.once(dummy, listener);
/third_party/skia/third_party/externals/abseil-cpp/absl/base/
H A Dcall_once.h20 // a given function at most once, across all threads. This Abseil version is
55 // once across all threads. The first call to `call_once()` with a particular
82 // ensure the provided function is only invoked once across all threads. This
194 std::atomic<uint32_t>* once = base_internal::ControlWord(flag); in LowLevelCallOnce() local
195 uint32_t s = once->load(std::memory_order_acquire); in LowLevelCallOnce()
197 base_internal::CallOnceImpl(once, base_internal::SCHEDULE_KERNEL_ONLY, in LowLevelCallOnce()
207 std::atomic<uint32_t>* once = base_internal::ControlWord(&flag); in call_once() local
208 uint32_t s = once->load(std::memory_order_acquire); in call_once()
211 once, base_internal::SCHEDULE_COOPERATIVE_AND_KERNEL, in call_once()
/third_party/mesa3d/src/compiler/glsl/glcpp/tests/
H A D101-macros-used-twice.c5 once
12 once
15 once again
/third_party/typescript/tests/baselines/reference/
H A DcorrelatedUnions.js110 readonly once?: boolean;
116 document.addEventListener(event.name, (ev) => event.callback(ev), { once: event.once });
120 function createEventListener<K extends keyof DocumentEventMap>({ name, once = false, callback }: Ev<K>): Ev<K> {
121 return { name, once, callback };
283 document.addEventListener(event_1.name, function (ev) { return event_1.callback(ev); }, { once: event_1.once });
291 var name = _a.name, _b = _a.once, once = _b === void 0 ? false : _b, callback = _a.callback;
292 return { name: name, once
[all...]
/third_party/node/lib/internal/
H A Dsocket_list.js13 child.once('exit', () => this.emit('exit', this));
35 this.child.once('disconnect', onclose);
84 this.once('empty', onempty);
100 obj.socket.once('close', () => {
/third_party/musl/libc-test/src/regression/
H A Dpthread_once-deadlock.c51 pthread_once_t once = PTHREAD_ONCE_INIT; in main() local
53 void *a1[] = {&once, &s1}; in main()
54 void *a2[] = {&once, &s2}; in main()
55 void *a3[] = {&once, &s3}; in main()
69 t_error("pthread_once ran init %d times instead of once\n", count); in main()

Completed in 7 milliseconds

12345678910>>...107