Home
last modified time | relevance | path

Searched refs:once (Results 26 - 50 of 2822) sorted by relevance

12345678910>>...113

/third_party/node/test/parallel/
H A Dtest-http-client-readable.js32 let once = false;
35 if (once)
37 once = true;
H A Dtest-stream-readable-no-unneeded-readable.js15 r.once('readable', function() {
25 r.once('end', function() {
30 wrapper.once('end', common.mustCall());
H A Dtest-timers-immediate-queue-throw.js7 // setImmediate should run clear its queued cbs once per event loop turn
26 process.once('uncaughtException', common.mustCall((err, errorOrigin) => {
33 d1.once('error', common.expectsError(errObj));
34 d1.once('error', () => assert.strictEqual(stage, 0));
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',
H A Dtest-cluster-net-send.js34 worker.once('message', common.mustCall(function(msg, handle) {
49 process.once('exit', function() {
63 process.once('message', common.mustCall(function(msg) {
H A Dtest-cluster-setup-primary.js49 cluster.once('setup', function() {
65 worker.once('message', function(data) {
80 process.once('exit', function() {
H A Dtest-event-emitter-listeners.js72 ee.once('foo', listener);
79 ee.once('foo', listener2);
102 ee.once('foo', listener);
116 ee.once('foo', listener3);
H A Dtest-https-abortcontroller.js10 const { once, getEventListeners } = require('events');
35 const [ err ] = await once(req, 'error');
62 const [ err ] = await once(req, 'error');
89 const [ err ] = await once(req, 'error');
H A Dtest-whatwg-events-add-event-listener-options-signal.js24 strictEqual(count, 2, 'The listener was not added with the once flag');
38 // Passing an AbortSignal to addEventListener works with the once flag
52 // Removing a once listener works with a passed signal
59 const options = { signal: controller.signal, once: true };
73 const options = { signal: controller.signal, once: true };
88 const options = { signal: controller.signal, once: true };
157 }, { once: true });
H A Dtest-cluster-worker-kill.js38 server.once('listening', common.mustCall());
71 worker.once('listening', common.mustCall(() => {
94 worker.once('exit', common.mustCall((exitCode, signalCode) => {
H A Dtest-crypto-key-objects-messageport.js28 return parentPort.once('message', ({ key }) => {
54 port2.once('message', common.mustCall(({ key }) => {
62 worker.once('message', common.mustCall((receivedRepresentation) => {
76 // TODO(addaleax): Switch this to a 'messageerror' event once MessagePort
/kernel/liteos_a/kernel/base/ipc/
H A Dlos_event.c127 UINT32 timeout, BOOL once) in OsEventReadImp()
133 if (once == FALSE) { in OsEventReadImp()
161 BOOL once) in OsEventRead()
172 ret = OsEventReadImp(eventCB, eventMask, mode, timeout, once); in OsEventRead()
194 LITE_OS_SEC_TEXT VOID OsEventWriteUnsafe(PEVENT_CB_S eventCB, UINT32 events, BOOL once, UINT8 *exitFlag) in OsEventWriteUnsafe() argument
208 if (once == TRUE) { in OsEventWriteUnsafe()
220 LITE_OS_SEC_TEXT STATIC UINT32 OsEventWrite(PEVENT_CB_S eventCB, UINT32 events, BOOL once) in OsEventWrite() argument
234 OsEventWriteUnsafe(eventCB, events, once, &exitFlag); in OsEventWrite()
126 OsEventReadImp(PEVENT_CB_S eventCB, UINT32 eventMask, UINT32 mode, UINT32 timeout, BOOL once) OsEventReadImp() argument
160 OsEventRead(PEVENT_CB_S eventCB, UINT32 eventMask, UINT32 mode, UINT32 timeout, BOOL once) OsEventRead() argument
/kernel/linux/linux-6.6/arch/x86/boot/compressed/
H A Dmem.c17 static bool once; in early_is_tdx_guest() local
23 if (!once) { in early_is_tdx_guest()
29 once = true; in early_is_tdx_guest()
/third_party/node/deps/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.
74 #include "src/base/once.h"
143 static void Init(OnceType* once, Function function, Storage storage) { in Init()
144 CallOnce(once, function, storage); in Init()
152 static void Init(OnceType* once, Function function, Storage storage) { in Init()
153 if (*once == ONCE_STATE_UNINITIALIZED) { in Init()
155 *once = ONCE_STATE_DONE; in Init()
/third_party/pulseaudio/src/pulsecore/
H A Dflist.h26 #include <pulsecore/once.h>
49 pa_once once; \
56 pa_run_once(&name##_flist.once, name##_flist_init); \
H A Dthread.h27 #include <pulsecore/once.h>
61 pa_once once; \
64 .once = PA_ONCE_INIT, \
71 pa_run_once(&name##_tls.once, name##_tls_init); \
/third_party/node/test/fixtures/wpt/streams/transferable/resources/
H A Dhelpers.js48 }, {once: true});
66 }, {once: true});
99 }, {once: true});
118 }, {once: true});
/third_party/pulseaudio/src/tests/
H A Donce-test.c36 #include <pulsecore/once.h>
42 static pa_once once = PA_ONCE_INIT; variable
81 pa_run_once(&once, once_func); in thread_func()
97 pa_zero(once); in START_TEST()
100 threads[i] = pa_thread_new("once", thread_func, pa_sprintf_malloc("Thread #%i", i+1)); in START_TEST()
133 tc = tcase_create("once"); in main()
/third_party/node/lib/internal/
H A Devent_target.js418 constructor(eventTarget, eventType, previous, listener, once, capture, passive,
427 if (once)
467 get once() {
527 [kNewListener](size, type, listener, once, capture, passive, weak) {
561 * once?: boolean,
575 once,
606 }, { __proto__: null, once: true, [kWeakHandler]: this, [kResistStopPropagation]: true });
614 new Listener(this, type, root, listener, once, capture, passive,
620 once,
641 new Listener(this, type, previous, listener, once, captur
[all...]
/third_party/skia/src/core/
H A DSkGlobalInitialization_core.cpp12 static SkOnce once; in RegisterFlattenablesIfNeeded() local
13 once([]{ in RegisterFlattenablesIfNeeded()
/third_party/skia/src/ports/
H A DSkFontConfigInterface_direct_factory.cpp13 static SkOnce once; in GetSingletonDirectInterface() local
14 once([]{ singleton = new SkFontConfigInterfaceDirect(); }); in GetSingletonDirectInterface()
/foundation/communication/wifi/wifi/utils/src/
H A Dwifi_timer.cpp39 ErrCode WifiTimer::Register(const TimerCallback &callback, uint32_t &outTimerId, uint32_t interval, bool once) in Register() argument
85 ErrCode WifiTimer::Register(const TimerCallback &callback, uint32_t &outTimerId, uint32_t interval, bool once) in Register() argument
92 uint32_t ret = timer_->Register(callback, interval, once); in Register()
/third_party/mesa3d/src/gallium/frontends/nine/
H A Dnine_debug.h41 static boolean once = TRUE; \
42 if (once) { \
43 once = FALSE; \
/third_party/node/deps/openssl/openssl/ms/
H A Dapplink.c105 static int once = 1; in __declspec() local
109 if (once) { in __declspec()
135 once = 0; in __declspec()

Completed in 9 milliseconds

12345678910>>...113