/third_party/rust/crates/cxx/tests/ffi/ |
D | lib.rs | 26 struct Shared { struct 98 fn c_return_shared() -> Shared; in c_return_shared() 102 fn c_return_ref(shared: &Shared) -> &usize; in c_return_ref() 103 fn c_return_mut(shared: &mut Shared) -> &mut usize; in c_return_mut() 104 fn c_return_str(shared: &Shared) -> &str; in c_return_str() 105 fn c_return_slice_char(shared: &Shared) -> &[c_char]; in c_return_slice_char() 113 fn c_return_unique_ptr_vector_shared() -> UniquePtr<CxxVector<Shared>>; in c_return_unique_ptr_vector_shared() 133 fn c_take_shared(shared: Shared); in c_take_shared() argument 139 fn c_take_slice_shared(s: &[Shared]); in c_take_slice_shared() argument 140 fn c_take_slice_shared_sort(s: &mut [Shared]); in c_take_slice_shared_sort() argument [all …]
|
D | tests.cc | 39 size_t Shared::c_method_on_shared() const noexcept { return 2021; } in c_method_on_shared() 41 const size_t &Shared::c_method_ref_on_shared() const noexcept { in c_method_ref_on_shared() 45 size_t &Shared::c_method_mut_on_shared() noexcept { return this->z; } in c_method_mut_on_shared() 57 Shared c_return_shared() { return Shared{2020}; } in c_return_shared() 64 Shared shared{0}; in c_return_box() 65 rust::Box<Shared> box{shared}; // explicit constructor from const T& in c_return_box() 66 rust::Box<Shared> other{std::move(shared)}; // explicit constructor from T&& in c_return_box() 68 rust::Box<Shared> box2(*box); // copy from another Box in c_return_box() 69 rust::Box<Shared> other2(std::move(other)); // move constructor in c_return_box() 70 rust::Box<Shared>::in_place(shared.z); // placement static factory in c_return_box() [all …]
|
D | tests.h | 38 struct Shared; 90 Shared c_return_shared(); 97 const size_t &c_return_ref(const Shared &shared); 100 size_t &c_return_mut(Shared &shared); 101 rust::Str c_return_str(const Shared &shared); 102 rust::Slice<const char> c_return_slice_char(const Shared &shared); 110 std::unique_ptr<std::vector<Shared>> c_return_unique_ptr_vector_shared(); 129 void c_take_shared(Shared shared); 139 void c_take_slice_shared(rust::Slice<const Shared> s); 140 void c_take_slice_shared_sort(rust::Slice<Shared> s); [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/ |
D | VkTimelineSemaphore.cpp | 31 …shared = marl::Allocator::Default->make_shared<TimelineSemaphore::Shared>(marl::Allocator::Default… in TimelineSemaphore() 38 …shared = marl::Allocator::Default->make_shared<TimelineSemaphore::Shared>(marl::Allocator::Default… in TimelineSemaphore() 55 void TimelineSemaphore::Shared::signal(uint64_t value) in signal() 74 void TimelineSemaphore::Shared::wait(uint64_t value) in wait() 85 uint64_t TimelineSemaphore::Shared::getCounterValue() in getCounterValue() 91 std::atomic<int> TimelineSemaphore::Shared::nextId; 93 TimelineSemaphore::Shared::Shared(marl::Allocator *allocator, uint64_t initialState) in Shared() function in vk::TimelineSemaphore::Shared 100 void TimelineSemaphore::Shared::signal(int parentId, uint64_t value) in signal() 125 void TimelineSemaphore::Shared::addDependent(TimelineSemaphore &other) in addDependent() 136 void TimelineSemaphore::Shared::addDependency(int id, uint64_t waitValue) in addDependency()
|
D | VkTimelineSemaphore.hpp | 31 struct Shared; 88 struct Shared struct in vk::TimelineSemaphore 100 Shared(marl::Allocator *allocator, uint64_t initialState); 132 marl::containers::vector<std::shared_ptr<Shared>, 1> deps; argument 142 std::shared_ptr<Shared> shared; 153 VkResult TimelineSemaphore::Shared::wait(uint64_t value, in wait()
|
/third_party/skia/third_party/externals/swiftshader/third_party/marl/include/marl/ |
D | event.h | 106 struct Shared { struct 107 MARL_NO_EXPORT inline Shared(Allocator* allocator, 123 containers::vector<std::shared_ptr<Shared>, 1> deps; argument 128 const std::shared_ptr<Shared> shared; argument 131 Event::Shared::Shared(Allocator* allocator, Mode mode, bool initialState) in Shared() function 134 void Event::Shared::signal() { in signal() 150 void Event::Shared::wait() { in wait() 159 bool Event::Shared::wait_for( in wait_for() 172 bool Event::Shared::wait_until( in wait_until() 187 : shared(allocator->make_shared<Shared>(allocator, mode, initialState)) {} in Event()
|
D | ticket.h | 61 struct Shared; 80 std::shared_ptr<Shared> shared = std::make_shared<Shared>(); 113 std::shared_ptr<Shared> shared; 122 struct Shared { struct
|
/third_party/rust/crates/cxx/tests/ |
D | test.rs | 37 let shared = ffi::Shared { z: 2020 }; in test_c_return() 122 check!(ffi::c_take_shared(ffi::Shared { z: 2020 })); in test_c_take() 133 ffi::Shared { z: 2020 }, in test_c_take() 134 ffi::Shared { z: 2021 }, in test_c_take() 137 ffi::Shared { z: 2 }, in test_c_take() 138 ffi::Shared { z: 0 }, in test_c_take() 139 ffi::Shared { z: 7 }, in test_c_take() 140 ffi::Shared { z: 4 }, in test_c_take() 164 vector.pin_mut().push(ffi::Shared { z: 9 }); in test_c_take() 170 let shared_test_vec = vec![ffi::Shared { z: 1010 }, ffi::Shared { z: 1011 }]; in test_c_take() [all …]
|
/third_party/mesa3d/src/mesa/main/ |
D | texturebindless.c | 52 mtx_lock(&ctx->Shared->HandlesMutex); in lookup_texture_handle() 54 _mesa_hash_table_u64_search(ctx->Shared->TextureHandles, id); in lookup_texture_handle() 55 mtx_unlock(&ctx->Shared->HandlesMutex); in lookup_texture_handle() 68 mtx_lock(&ctx->Shared->HandlesMutex); in lookup_image_handle() 70 _mesa_hash_table_u64_search(ctx->Shared->ImageHandles, id); in lookup_image_handle() 71 mtx_unlock(&ctx->Shared->HandlesMutex); in lookup_image_handle() 82 mtx_lock(&ctx->Shared->HandlesMutex); in delete_texture_handle() 83 _mesa_hash_table_u64_remove(ctx->Shared->TextureHandles, id); in delete_texture_handle() 84 mtx_unlock(&ctx->Shared->HandlesMutex); in delete_texture_handle() 95 mtx_lock(&ctx->Shared->HandlesMutex); in delete_image_handle() [all …]
|
D | syncobj.c | 177 simple_mtx_lock(&ctx->Shared->Mutex); in _mesa_get_and_ref_sync() 179 && _mesa_set_search(ctx->Shared->SyncObjects, syncObj) != NULL in _mesa_get_and_ref_sync() 187 simple_mtx_unlock(&ctx->Shared->Mutex); in _mesa_get_and_ref_sync() 198 simple_mtx_lock(&ctx->Shared->Mutex); in _mesa_unref_sync_object() 201 entry = _mesa_set_search(ctx->Shared->SyncObjects, syncObj); in _mesa_unref_sync_object() 203 _mesa_set_remove(ctx->Shared->SyncObjects, entry); in _mesa_unref_sync_object() 204 simple_mtx_unlock(&ctx->Shared->Mutex); in _mesa_unref_sync_object() 208 simple_mtx_unlock(&ctx->Shared->Mutex); in _mesa_unref_sync_object() 294 …ctx->pipe->flush(ctx->pipe, &syncObj->fence, ctx->Shared->RefCount == 1 ? PIPE_FLUSH_DEFERRED : 0); in fence_sync() 296 simple_mtx_lock(&ctx->Shared->Mutex); in fence_sync() [all …]
|
D | robustness.c | 140 simple_mtx_lock(&ctx->Shared->Mutex); in _mesa_GetGraphicsResetStatusARB() 148 ctx->Shared->ShareGroupReset = true; in _mesa_GetGraphicsResetStatusARB() 149 ctx->Shared->DisjointOperation = true; in _mesa_GetGraphicsResetStatusARB() 150 } else if (ctx->Shared->ShareGroupReset && !ctx->ShareGroupReset) { in _mesa_GetGraphicsResetStatusARB() 154 ctx->ShareGroupReset = ctx->Shared->ShareGroupReset; in _mesa_GetGraphicsResetStatusARB() 155 simple_mtx_unlock(&ctx->Shared->Mutex); in _mesa_GetGraphicsResetStatusARB()
|
D | shaderobj.c | 76 _mesa_HashRemoveLocked(ctx->Shared->ShaderObjects, old->Name); in _reference_shader() 78 _mesa_HashRemove(ctx->Shared->ShaderObjects, old->Name); in _reference_shader() 162 _mesa_HashLookup(ctx->Shared->ShaderObjects, name); in _mesa_lookup_shader() 188 _mesa_HashLookup(ctx->Shared->ShaderObjects, name); in _mesa_lookup_shader_err() 261 _mesa_HashLockMutex(ctx->Shared->ShaderObjects); in _mesa_reference_shader_program_() 263 _mesa_HashRemoveLocked(ctx->Shared->ShaderObjects, old->Name); in _mesa_reference_shader_program_() 265 _mesa_HashUnlockMutex(ctx->Shared->ShaderObjects); in _mesa_reference_shader_program_() 435 _mesa_HashLookup(ctx->Shared->ShaderObjects, name); in _mesa_lookup_shader_program() 462 _mesa_HashLookup(ctx->Shared->ShaderObjects, name); in _mesa_lookup_shader_program_err_glthread()
|
D | externalobjects.h | 47 _mesa_HashLookup(ctx->Shared->MemoryObjects, memory); in _mesa_lookup_memory_object() 57 _mesa_HashLookupLocked(ctx->Shared->MemoryObjects, memory); in _mesa_lookup_memory_object_locked() 67 _mesa_HashLookup(ctx->Shared->SemaphoreObjects, semaphore); in _mesa_lookup_semaphore_object() 77 _mesa_HashLookupLocked(ctx->Shared->SemaphoreObjects, semaphore); in _mesa_lookup_semaphore_object_locked()
|
D | externalobjects.c | 151 _mesa_HashLockMutex(ctx->Shared->MemoryObjects); in _mesa_DeleteMemoryObjectsEXT() 158 _mesa_HashRemoveLocked(ctx->Shared->MemoryObjects, in _mesa_DeleteMemoryObjectsEXT() 164 _mesa_HashUnlockMutex(ctx->Shared->MemoryObjects); in _mesa_DeleteMemoryObjectsEXT() 207 _mesa_HashLockMutex(ctx->Shared->MemoryObjects); in _mesa_CreateMemoryObjectsEXT() 208 if (_mesa_HashFindFreeKeys(ctx->Shared->MemoryObjects, memoryObjects, n)) { in _mesa_CreateMemoryObjectsEXT() 216 _mesa_HashUnlockMutex(ctx->Shared->MemoryObjects); in _mesa_CreateMemoryObjectsEXT() 221 _mesa_HashInsertLocked(ctx->Shared->MemoryObjects, in _mesa_CreateMemoryObjectsEXT() 227 _mesa_HashUnlockMutex(ctx->Shared->MemoryObjects); in _mesa_CreateMemoryObjectsEXT() 784 _mesa_HashLockMutex(ctx->Shared->SemaphoreObjects); in _mesa_GenSemaphoresEXT() 785 if (_mesa_HashFindFreeKeys(ctx->Shared->SemaphoreObjects, semaphores, n)) { in _mesa_GenSemaphoresEXT() [all …]
|
D | texobj.c | 120 _mesa_HashLookup(ctx->Shared->TexObjects, id); in _mesa_lookup_texture() 146 _mesa_HashLookupLocked(ctx->Shared->TexObjects, id); in _mesa_lookup_texture_locked() 934 if (!ctx->Shared->FallbackTex[tex]) { in _mesa_get_fallback_texture() 1047 ctx->Shared->FallbackTex[tex] = texObj; in _mesa_get_fallback_texture() 1053 return ctx->Shared->FallbackTex[tex]; in _mesa_get_fallback_texture() 1104 _mesa_HashWalk(ctx->Shared->TexObjects, count_tex_size, &total); in _mesa_total_texture_memory() 1108 total += texture_size(ctx->Shared->DefaultTex[tgt]); in _mesa_total_texture_memory() 1202 _mesa_HashLockMutex(ctx->Shared->TexObjects); in create_textures() 1204 _mesa_HashFindFreeKeys(ctx->Shared->TexObjects, textures, n); in create_textures() 1211 _mesa_HashUnlockMutex(ctx->Shared->TexObjects); in create_textures() [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | circularlySimplifyingConditionalTypesNoCrash.symbols | 13 type Shared< // Circularly self constraining type, defered thanks to mapping 14 >Shared : Symbol(Shared, Decl(circularlySimplifyingConditionalTypesNoCrash.ts, 0, 63)) 19 DecorationTargetProps extends Shared<InjectedProps, DecorationTargetProps> 21 >Shared : Symbol(Shared, Decl(circularlySimplifyingConditionalTypesNoCrash.ts, 0, 63)) 55 <P extends Shared<TInjectedProps, P>>( 57 >Shared : Symbol(Shared, Decl(circularlySimplifyingConditionalTypesNoCrash.ts, 0, 63)) 66 …): ComponentClass<Omit<P, keyof Shared<TInjectedProps, P>> & TNeedsProps> & { WrappedComponent: Co… 70 >Shared : Symbol(Shared, Decl(circularlySimplifyingConditionalTypesNoCrash.ts, 0, 63))
|
D | circularlySimplifyingConditionalTypesNoCrash.types | 5 type Shared< // Circularly self constraining type, defered thanks to mapping 6 >Shared : Shared<InjectedProps, DecorationTargetProps> 9 DecorationTargetProps extends Shared<InjectedProps, DecorationTargetProps> 20 <P extends Shared<TInjectedProps, P>>( 24 …): ComponentClass<Omit<P, keyof Shared<TInjectedProps, P>> & TNeedsProps> & { WrappedComponent: Co…
|
D | circularlySimplifyingConditionalTypesNoCrash.js | 4 type Shared< // Circularly self constraining type, defered thanks to mapping 6 DecorationTargetProps extends Shared<InjectedProps, DecorationTargetProps> 16 <P extends Shared<TInjectedProps, P>>( 18 …): ComponentClass<Omit<P, keyof Shared<TInjectedProps, P>> & TNeedsProps> & { WrappedComponent: Co…
|
D | circularlyConstrainedMappedTypeContainingConditionalNoInfiniteInstantiationDepth.types | 81 export type Shared< 82 >Shared : Shared<InjectedProps, DecorationTargetProps> 85 DecorationTargetProps extends Shared<InjectedProps, DecorationTargetProps> 125 …) => ConnectedComponentClass<C, Omit<GetProps<C>, keyof Shared<TInjectedProps, GetProps<C>>> & TNe…
|
/third_party/rust/crates/cxx/tests/ui/ |
D | unique_ptr_as_mut.rs | 5 struct Shared { struct 13 impl UniquePtr<Shared> {} 18 let mut shared = UniquePtr::<ffi::Shared>::null(); in main() argument 19 let _: &mut ffi::Shared = &mut shared; in main()
|
D | drop_shared.stderr | 1 error[E0119]: conflicting implementations of trait `forbid::Drop` for type `Shared` 7 3 | struct Shared { 8 | ^^^^^^^^^^^^^ conflicting implementation for `Shared`
|
/third_party/typescript/tests/cases/compiler/ |
D | circularlySimplifyingConditionalTypesNoCrash.ts | 4 type Shared< // Circularly self constraining type, defered thanks to mapping alias 6 DecorationTargetProps extends Shared<InjectedProps, DecorationTargetProps> 16 <P extends Shared<TInjectedProps, P>>( 18 …): ComponentClass<Omit<P, keyof Shared<TInjectedProps, P>> & TNeedsProps> & { WrappedComponent: Co…
|
/third_party/skia/src/sksl/ir/ |
D | SkSLProgram.h | 140 using Shared = std::vector<const ProgramElement*>::const_iterator; member 143 iterator(Owned owned, Owned ownedEnd, Shared shared, Shared sharedEnd) in iterator() 148 Shared fShared; 149 Shared fSharedEnd;
|
/third_party/mesa3d/src/mesa/program/ |
D | program.c | 97 ctx->Shared->DefaultVertexProgram); in _mesa_init_program() 103 ctx->Shared->DefaultFragmentProgram); in _mesa_init_program() 110 ctx->ATIFragmentShader.Current = ctx->Shared->DefaultFragmentShader; in _mesa_init_program() 148 ctx->Shared->DefaultVertexProgram); in _mesa_update_default_objects_program() 152 ctx->Shared->DefaultFragmentProgram); in _mesa_update_default_objects_program() 162 …ctx->ATIFragmentShader.Current = (struct ati_fragment_shader *) ctx->Shared->DefaultFragmentShader; in _mesa_update_default_objects_program() 290 return (struct gl_program *) _mesa_HashLookup(ctx->Shared->Programs, id); in _mesa_lookup_program()
|
/third_party/rust/crates/cxx/book/src/binding/ |
D | vec.md | 144 struct Shared { 151 fn f(elements: Vec<Shared>); 156 let shared = |v| ffi::Shared { v }; 169 void f(rust::Vec<Shared> elements); 182 void f(rust::Vec<Shared> v) { 188 std::vector<Shared> stdv;
|