| /external/rust/crates/spin/src/ |
| D | once.rs | 12 /// value to be stored by the [`Once`] (`std::sync::Once` can be trivially emulated with 13 /// `Once`). 15 /// Because [`Once::new`] is `const`, this primitive may be used to safely initialize statics. 22 /// static START: spin::Once = spin::Once::new(); 28 pub struct Once<T = (), R = Spin> { struct 34 impl<T, R> Default for Once<T, R> { implementation 40 impl<T: fmt::Debug, R> fmt::Debug for Once<T, R> { implementation 43 Some(s) => write!(f, "Once {{ data: ") in fmt() 46 None => write!(f, "Once {{ <uninitialized> }}"), in fmt() 53 unsafe impl<T: Send + Sync, R> Sync for Once<T, R> {} implementation [all …]
|
| /external/skia/resources/sksl/errors/ |
| D | LayoutRepeatedQualifiers.sksl | 42 layout qualifier 'origin_upper_left' appears more than once 43 layout qualifier 'push_constant' appears more than once 44 layout qualifier 'blend_support_all_equations' appears more than once 45 layout qualifier 'color' appears more than once 46 layout qualifier 'location' appears more than once 47 layout qualifier 'offset' appears more than once 48 layout qualifier 'binding' appears more than once 49 layout qualifier 'index' appears more than once 50 layout qualifier 'set' appears more than once 51 layout qualifier 'builtin' appears more than once [all …]
|
| D | ModifiersRepeated.sksl | 9 'const' appears more than once 10 'uniform' appears more than once 11 'flat' appears more than once 12 'noperspective' appears more than once 13 'uniform' appears more than once 14 'in' appears more than once 15 'out' appears more than once 16 'inout' appears more than once
|
| /external/rust/crates/parking_lot/src/ |
| D | once.rs | 20 /// Current state of a `Once`. 37 /// Returns whether the associated `Once` has been poisoned. 39 /// Once an initialization routine for a `Once` has panicked it will forever 49 /// Returns whether the associated `Once` has successfully executed a 64 /// # Differences from the standard library `Once` 75 /// use parking_lot::Once; 77 /// static START: Once = Once::new(); 83 pub struct Once(AtomicU8); struct 85 impl Once { implementation 86 /// Creates a new `Once` value. [all …]
|
| /external/skia/tests/sksl/errors/ |
| D | LayoutRepeatedQualifiers.glsl | 3 error: 21: layout qualifier 'origin_upper_left' appears more than once 6 error: 22: layout qualifier 'push_constant' appears more than once 9 error: 23: layout qualifier 'blend_support_all_equations' appears more than once 12 error: 24: layout qualifier 'color' appears more than once 15 error: 25: layout qualifier 'location' appears more than once 18 error: 26: layout qualifier 'offset' appears more than once 21 error: 27: layout qualifier 'binding' appears more than once 24 error: 28: layout qualifier 'index' appears more than once 27 error: 29: layout qualifier 'set' appears more than once 30 error: 30: layout qualifier 'builtin' appears more than once [all …]
|
| D | ModifiersRepeated.glsl | 3 error: 1: 'const' appears more than once 6 error: 2: 'uniform' appears more than once 9 error: 3: 'flat' appears more than once 12 error: 3: 'noperspective' appears more than once 15 error: 3: 'uniform' appears more than once 18 error: 4: 'in' appears more than once 21 error: 5: 'out' appears more than once 24 error: 6: 'inout' appears more than once
|
| /external/golang-protobuf/internal/filedesc/ |
| D | desc_list_gen.go | 20 once sync.Once member 21 byName map[protoreflect.Name]*Enum // protected by once 41 p.once.Do(func() { 57 once sync.Once member 58 byName map[protoreflect.Name]*EnumValue // protected by once 59 byNum map[protoreflect.EnumNumber]*EnumValue // protected by once 85 p.once.Do(func() { 105 once sync.Once member 106 byName map[protoreflect.Name]*Message // protected by once 126 p.once.Do(func() { [all …]
|
| /external/rust/crates/tracing-core/src/spin/ |
| D | once.rs | 8 /// closure returns a value and it is stored. Once therefore acts something like 10 pub struct Once<T> { struct 15 impl<T: fmt::Debug> fmt::Debug for Once<T> { implementation 18 Some(s) => write!(f, "Once {{ data: ") in fmt() 21 None => write!(f, "Once {{ <uninitialized> }}"), in fmt() 28 unsafe impl<T: Send + Sync> Sync for Once<T> {} implementation 29 unsafe impl<T: Send> Send for Once<T> {} implementation 31 // Four states that a Once can be in, encoded into the lower bits of `state` in 32 // the Once structure. 40 impl<T> Once<T> { impl [all …]
|
| /external/skia/tests/ |
| D | OnceTest.cpp | 22 SkOnce once; in DEF_TEST() local 23 once(add_five, &x); in DEF_TEST() 24 once(add_five, &x); in DEF_TEST() 25 once(add_five, &x); in DEF_TEST() 26 once(add_five, &x); in DEF_TEST() 27 once(add_five, &x); in DEF_TEST() 36 SkOnce once; in DEF_TEST() local 38 once([&] { x += 6; }); in DEF_TEST() 49 SkOnce once; in DEF_TEST() local 50 once(inc_gX); in DEF_TEST() [all …]
|
| /external/rust/crates/spin/ |
| D | CHANGELOG.md | 20 - Unsoundness in `Once::try_call_once` caused by an `Err(_)` result 62 - Implemented `Default` for `Once` 63 - `Once::try_call_once` 67 - Fixed bug that caused `Once::call_once` to incorrectly fail 73 - Improved `Once` performance by reducing the memory footprint of internal state to one byte 77 - Improved performance of `Once` by relaxing ordering guarantees and removing redundant checks 83 - Default type parameter on `Once` for better ergonomics 99 - `Once::get_unchecked` 110 - Prevented `Once` leaking the inner value upon drop 116 - `Once::initialized` [all …]
|
| /external/rust/crates/tokio/src/util/ |
| D | once_cell.rs | 4 use std::sync::Once; 7 once: Once, field 17 once: Once::new(), in new() 29 if !self.once.is_completed() { in get() 33 // Safety: The `std::sync::Once` guarantees that we can only reach this in get() 34 // line if a `call_once` closure has been run exactly once and without in get() 47 self.once.call_once(|| { in do_init() 50 // Safety: The `std::sync::Once` guarantees that this initialization in do_init() 51 // will run at most once, and that no thread can get past the in do_init() 52 // `call_once` until it has run exactly once. Thus, we have in do_init() [all …]
|
| /external/grpc-grpc/src/ruby/spec/generic/ |
| D | client_interceptors_spec.rb | 30 .once.and_call_original 35 .once.and_call_original 42 .once.and_call_original 48 .once.and_call_original 57 .once.and_call_original 62 .once.and_call_original 70 .once.and_call_original 77 .once.and_call_original 86 .once.and_call_original 92 .once.and_call_original [all …]
|
| D | server_interceptors_spec.rb | 37 .once.and_call_original 47 .once.and_call_original 53 .once.and_call_original 72 .once.and_call_original 82 .once.and_call_original 88 .once.and_call_original 107 .once.and_call_original 120 .once.and_call_original 126 .once.and_call_original 147 .once.and_call_original [all …]
|
| D | rpc_desc_spec.rb | 41 expect(@call).to receive(:read_unary_request).once.and_return(Object.new) 42 expect(@call).to receive(:send_status).once.with(@bs_code, 'NOK', false, 48 expect(@call).to receive(:read_unary_request).once.and_return(Object.new) 49 expect(@call).to receive(:send_status).once.with(UNKNOWN, 56 expect(@call).to receive(:read_unary_request).once.and_return(Object.new) 57 expect(@call).to receive(:send_status).once.with( 63 expect(@call).to receive(:read_unary_request).once.and_raise(CallError) 85 expect(@call).to receive(:read_unary_request).once.and_return(req) 86 expect(@call).to receive(:output_metadata).once.and_return(fake_md) 87 expect(@call).to receive(:server_unary_response).once [all …]
|
| /external/rust/crates/tokio-stream/src/ |
| D | once.rs | 7 /// Stream for the [`once`](fn@once) function. 10 pub struct Once<T> { struct 14 impl<I> Unpin for Once<I> {} implementation 16 /// Creates a stream that emits an element exactly once. 18 /// The returned stream is immediately ready and emits the provided value once. 28 /// let mut one = stream::once(1); 36 pub fn once<T>(value: T) -> Once<T> { in once() function 37 Once { in once() 42 impl<T> Stream for Once<T> { implementation
|
| /external/rust/crates/tokio/tests/ |
| D | sync_once_cell.rs | 152 static ONCE: OnceCell<u32> = OnceCell::const_new(); in get_or_init() constant 155 let handle1 = rt.spawn(async { ONCE.get_or_init(func1).await }); in get_or_init() 156 let handle2 = rt.spawn(async { ONCE.get_or_init(func2).await }); in get_or_init() 176 static ONCE: OnceCell<u32> = OnceCell::const_new(); in get_or_init_panic() variable 181 let handle1 = rt.spawn(async { ONCE.get_or_init(func1).await }); in get_or_init_panic() 182 let handle2 = rt.spawn(async { ONCE.get_or_init(func_panic).await }); in get_or_init_panic() 201 static ONCE: OnceCell<u32> = OnceCell::const_new(); in set_and_get() constant 204 let _ = rt.spawn(async { ONCE.set(5) }).await; in set_and_get() 205 let value = ONCE.get().unwrap(); in set_and_get() 212 static ONCE: OnceCell<u32> = OnceCell::const_new(); in get_uninit() variable [all …]
|
| /external/rust/crates/rayon/src/iter/ |
| D | once.rs | 4 /// Creates a parallel iterator that produces an element exactly once. 14 /// use rayon::iter::once; 17 /// .chain(once(-1)) 24 pub fn once<T: Send>(item: T) -> Once<T> { in once() function 25 Once { item } in once() 28 /// Iterator adaptor for [the `once()` function](fn.once.html). 30 pub struct Once<T: Send> { struct 34 impl<T: Send> ParallelIterator for Once<T> { argument 49 impl<T: Send> IndexedParallelIterator for Once<T> { implementation
|
| /external/rust/crates/tokio/src/fs/file/ |
| D | tests.rs | 15 file.expect_inner_read().once().returning(|buf| { in open_read() 41 file.expect_inner_read().once().returning(|buf| { in read_twice_before_dispatch() 65 file.expect_inner_read().once().returning(|buf| { in read_with_smaller_buf() 103 .once() in read_with_bigger_buf() 110 .once() in read_with_bigger_buf() 158 .once() in read_err_then_read_success() 162 .once() in read_err_then_read_success() 199 .once() in open_write() 254 .once() in read_with_buffer_larger_than_max() 261 .once() in read_with_buffer_larger_than_max() [all …]
|
| /external/deqp/android/cts/runner/tests/src/com/drawelements/deqp/runner/ |
| D | DeqpTestRunnerTest.java | 265 .once(); in testGlesVersion() 270 .once(); in testGlesVersion() 275 .once(); in testGlesVersion() 280 .once(); in testGlesVersion() 298 EasyMock.expectLastCall().once(); in testGlesVersion() 301 EasyMock.expectLastCall().once(); in testGlesVersion() 308 EasyMock.expectLastCall().once(); in testGlesVersion() 313 EasyMock.expectLastCall().once(); in testGlesVersion() 317 EasyMock.expectLastCall().once(); in testGlesVersion() 449 EasyMock.expectLastCall().once(); in testResultCode() [all …]
|
| /external/zstd/build/single_file_libs/ |
| D | combine.py | 34 # Whether to keep the #pragma once directives (unlikely, since this will result 44 # Compiled regex Pattern to handle "#pragma once" in various formats: 46 # #pragma once 47 # #pragma once 48 # # pragma once 49 # #pragma once 50 # #pragma once // comment 54 pragma_regex: Pattern = re.compile(r'^\s*#\s*pragma\s*once\s*') 98 if (pragma_regex.match('#pragma once') and 99 pragma_regex.match(' #pragma once') and [all …]
|
| /external/cronet/third_party/boringssl/src/third_party/googletest/googlemock/test/ |
| D | gmock_output_test_golden.txt | 41 Expected: to be called once 55 Expected: to be called once 64 Expected: to be called once 72 Expected: to be called once 102 Expected: to be called once 103 Actual: called once - saturated and retired 109 Expected: to be called once 124 Expected: to be called once 131 Expected: to be called once 146 Expected: to be called once [all …]
|
| /external/cronet/third_party/googletest/src/googlemock/test/ |
| D | gmock_output_test_golden.txt | 41 Expected: to be called once 54 Expected: to be called once 62 Expected: to be called once 69 Expected: to be called once 98 Expected: to be called once 99 Actual: called once - saturated and retired 105 Expected: to be called once 119 Expected: to be called once 126 Expected: to be called once 140 Expected: to be called once [all …]
|
| /external/googletest/googlemock/test/ |
| D | gmock_output_test_golden.txt | 41 Expected: to be called once 55 Expected: to be called once 64 Expected: to be called once 72 Expected: to be called once 102 Expected: to be called once 103 Actual: called once - saturated and retired 109 Expected: to be called once 124 Expected: to be called once 131 Expected: to be called once 146 Expected: to be called once [all …]
|
| /external/rust/crates/crossbeam-utils/src/sync/ |
| D | once_lock.rs | 7 use std::sync::Once; 10 once: Once, field 24 once: Once::new(), in new() 49 if self.once.is_completed() { in get_or_init() 66 self.once.call_once(|| { in initialize() 76 debug_assert!(self.once.is_completed()); in get_unchecked() 83 if self.once.is_completed() { in drop()
|
| /external/rust/crates/crossbeam-epoch/src/sync/ |
| D | once_lock.rs | 7 use std::sync::Once; 10 once: Once, field 24 once: Once::new(), in new() 49 if self.once.is_completed() { in get_or_init() 66 self.once.call_once(|| { in initialize() 76 debug_assert!(self.once.is_completed()); in get_unchecked() 83 if self.once.is_completed() { in drop()
|