Home
last modified time | relevance | path

Searched refs:ONCE (Results 1 – 18 of 18) sorted by relevance

/external/rust/crates/tokio/tests/
Dsync_once_cell.rs55 static ONCE: OnceCell<u32> = OnceCell::const_new(); in get_or_init() constant
58 let handle1 = rt.spawn(async { ONCE.get_or_init(func1).await }); in get_or_init()
59 let handle2 = rt.spawn(async { ONCE.get_or_init(func2).await }); in get_or_init()
79 static ONCE: OnceCell<u32> = OnceCell::const_new(); in get_or_init_panic() constant
84 let handle1 = rt.spawn(async { ONCE.get_or_init(func1).await }); in get_or_init_panic()
85 let handle2 = rt.spawn(async { ONCE.get_or_init(func_panic).await }); in get_or_init_panic()
104 static ONCE: OnceCell<u32> = OnceCell::const_new(); in set_and_get() variable
107 let _ = rt.spawn(async { ONCE.set(5) }).await; in set_and_get()
108 let value = ONCE.get().unwrap(); in set_and_get()
115 static ONCE: OnceCell<u32> = OnceCell::const_new(); in get_uninit() variable
[all …]
/external/llvm-project/llvm/test/Other/
Dprint-before-after.ll5 …es='no-op-module,no-op-function' -print-before=no-op-module 2>&1 | FileCheck %s --check-prefix=ONCE
6 …ses='no-op-module,no-op-function' -print-after=no-op-module 2>&1 | FileCheck %s --check-prefix=ONCE
7 …utput -passes='no-op-function' -print-before=no-op-function 2>&1 | FileCheck %s --check-prefix=ONCE
8 …output -passes='no-op-function' -print-after=no-op-function 2>&1 | FileCheck %s --check-prefix=ONCE
15 ; ONCE: @foo
16 ; ONCE: @bar
17 ; ONCE-NOT: @foo
18 ; ONCE-NOT: @bar
/external/easymock/src/org/easymock/internal/
DRecordState.java98 times(MocksControl.ONCE); in andReturn()
107 times(MocksControl.ONCE); in andThrow()
116 times(MocksControl.ONCE); in andAnswer()
125 times(MocksControl.ONCE); in andDelegateTo()
135 times(MocksControl.ONCE); in andStubReturn()
147 times(MocksControl.ONCE); in setDefaultReturnValue()
176 times(MocksControl.ONCE); in andStubThrow()
187 times(MocksControl.ONCE); in setDefaultThrowable()
199 times(MocksControl.ONCE); in andStubAnswer()
209 times(MocksControl.ONCE); in andStubDelegateTo()
DMocksControl.java238 state.times(ONCE); in once()
266 public static final Range ONCE = new Range(1); field in MocksControl
/external/llvm-project/llvm/test/Transforms/InstCombine/
Derase-dbg-values-at-dead-alloc-site.ll1 ; RUN: opt -S -instcombine %s | FileCheck %s -check-prefix=RUN-ONCE
13 ; RUN-ONCE-LABEL: @t1(
14 ; RUN-ONCE-NEXT: llvm.dbg.value(metadata i32 %0, metadata [[t1_arg0:![0-9]+]], metadata !DIExpressi…
15 ; RUN-ONCE-NEXT: llvm.dbg.value(metadata i32* undef, metadata [[t1_fake_ptr:![0-9]+]], metadata !DI…
16 ; RUN-ONCE-NEXT: ret void
53 ; RUN-ONCE: [[t1_arg0]] = !DILocalVariable(name: "a"
54 ; RUN-ONCE: [[t1_fake_ptr]] = !DILocalVariable(name: "fake_ptr"
/external/llvm-project/llvm/test/tools/llvm-objcopy/MachO/
Dinstall-name-tool-change.test59 # RUN: llvm-install-name-tool -change /usr/COMMON /usr/ONCE %t.copy
60 # RUN: llvm-objdump -p %t.copy | FileCheck %s --check-prefix=CHANGE-ONCE --implicit-check-not='name…
62 # CHANGE-ONCE: name /usr/ONCE
63 # CHANGE-ONCE: name /usr/ONCE
72 # RUN: not llvm-install-name-tool %t -change /usr/ONCE 2>&1 | \
/external/rust/crates/lazy_static/tests/
Dtest.rs113 static ONCE: X = X; variable
122 test(vec![X, Once(X).0, ONCE_INIT.0, DATA, ONCE,
/external/toybox/toys/pending/
Dinit.c37 #define ONCE 0x04 macro
321 if (x->action & (SHUTDOWN|ONCE|SYSINIT|CTRLALTDEL|WAIT)) { in run_action_from_list()
499 run_action_from_list(ONCE); in init_main()
/external/rust/crates/libloading/tests/
Dfunctions.rs10 static ONCE: ::std::sync::Once = ::std::sync::Once::new(); in make_helpers() variable
11 ONCE.call_once(|| { in make_helpers()
/external/rust/crates/num_cpus/src/
Dlinux.rs112 static ONCE: Once = ::std::sync::ONCE_INIT; in cgroups_num_cpus() constant
114 ONCE.call_once(init_cgroups); in cgroups_num_cpus()
/external/deqp/external/openglcts/modules/gl/
Dgl4cShadingLanguage420PackTests.cpp2506 static const testCase test_cases[] = { { ASSIGNMENT_BEFORE_OPERATOR, ONCE, UNIX }, in prepareNextTestCase()
2507 { ASSIGNMENT_BEFORE_OPERATOR, ONCE, DOS }, in prepareNextTestCase()
2510 { ASSIGNMENT_AFTER_OPERATOR, ONCE, UNIX }, in prepareNextTestCase()
2511 { ASSIGNMENT_AFTER_OPERATOR, ONCE, DOS }, in prepareNextTestCase()
2514 { VECTOR_VARIABLE_INITIALIZER, ONCE, UNIX }, in prepareNextTestCase()
2515 { VECTOR_VARIABLE_INITIALIZER, ONCE, DOS }, in prepareNextTestCase()
2518 { TOKEN_INSIDE_FUNCTION_NAME, ONCE, UNIX }, in prepareNextTestCase()
2519 { TOKEN_INSIDE_FUNCTION_NAME, ONCE, DOS }, in prepareNextTestCase()
2522 { TOKEN_INSIDE_TYPE_NAME, ONCE, UNIX }, in prepareNextTestCase()
2523 { TOKEN_INSIDE_TYPE_NAME, ONCE, DOS }, in prepareNextTestCase()
[all …]
Dgl4cShadingLanguage420PackTests.hpp731 ONCE = 0, enumerator
/external/easymock/src/org/easymock/
DMockControl.java414 public static final Range ONE = MocksControl.ONCE;
/external/rust/crates/clap/src/
Dmacros.rs484 static ONCE: Once = ONCE_INIT; constant
488 ONCE.call_once(|| {
/external/skqp/src/compute/skc/platforms/cl_12/kernels/
Dprefix.cl178 // WITH SIMD, ONCE A TTS_INVALID IS DETECTED WE CAN QUIT
/external/catch2/projects/SelfTest/Baselines/
Dconsole.std.approved.txt1314 this SHOULD be seen only ONCE
Dcompact.sw.approved.txt1665 Message.tests.cpp:<line number>: failed: false with 1 message: 'this SHOULD be seen only ONCE'
1667 Message.tests.cpp:<line number>: passed: true with 1 message: 'this MAY also be seen only ONCE IF i…
Dconsole.sw.approved.txt12353 this SHOULD be seen only ONCE
12361 this MAY also be seen only ONCE IF info is printed for passing assertions