/third_party/node/test/parallel/ |
H A D | test-http-client-readable.js | 32 let once = false; 35 if (once) 37 once = true;
|
H A D | test-stream-readable-no-unneeded-readable.js | 15 r.once('readable', function() { 25 r.once('end', function() { 30 wrapper.once('end', common.mustCall());
|
H A D | test-timers-immediate-queue-throw.js | 7 // 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 D | test-event-emitter-remove-listeners.js | 54 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 D | test-inspector-contexts.js | 16 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 D | test-cluster-net-send.js | 34 worker.once('message', common.mustCall(function(msg, handle) { 49 process.once('exit', function() { 63 process.once('message', common.mustCall(function(msg) {
|
H A D | test-cluster-setup-primary.js | 49 cluster.once('setup', function() { 65 worker.once('message', function(data) { 80 process.once('exit', function() {
|
H A D | test-event-emitter-listeners.js | 72 ee.once('foo', listener); 79 ee.once('foo', listener2); 102 ee.once('foo', listener); 116 ee.once('foo', listener3);
|
H A D | test-https-abortcontroller.js | 10 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 D | test-whatwg-events-add-event-listener-options-signal.js | 24 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 D | test-cluster-worker-kill.js | 38 server.once('listening', common.mustCall()); 71 worker.once('listening', common.mustCall(() => { 94 worker.once('exit', common.mustCall((exitCode, signalCode) => {
|
H A D | test-crypto-key-objects-messageport.js | 28 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 D | los_event.c | 127 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 D | mem.c | 17 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 D | lazy-instance.h | 9 // 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 D | flist.h | 26 #include <pulsecore/once.h> 49 pa_once once; \ 56 pa_run_once(&name##_flist.once, name##_flist_init); \
|
H A D | thread.h | 27 #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 D | helpers.js | 48 }, {once: true}); 66 }, {once: true}); 99 }, {once: true}); 118 }, {once: true});
|
/third_party/pulseaudio/src/tests/ |
H A D | once-test.c | 36 #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 D | event_target.js | 418 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 D | SkGlobalInitialization_core.cpp | 12 static SkOnce once; in RegisterFlattenablesIfNeeded() local 13 once([]{ in RegisterFlattenablesIfNeeded()
|
/third_party/skia/src/ports/ |
H A D | SkFontConfigInterface_direct_factory.cpp | 13 static SkOnce once; in GetSingletonDirectInterface() local 14 once([]{ singleton = new SkFontConfigInterfaceDirect(); }); in GetSingletonDirectInterface()
|
/foundation/communication/wifi/wifi/utils/src/ |
H A D | wifi_timer.cpp | 39 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 D | nine_debug.h | 41 static boolean once = TRUE; \ 42 if (once) { \ 43 once = FALSE; \
|
/third_party/node/deps/openssl/openssl/ms/ |
H A D | applink.c | 105 static int once = 1; in __declspec() local 109 if (once) { in __declspec() 135 once = 0; in __declspec()
|