Home
last modified time | relevance | path

Searched refs:Shared (Results 1 – 25 of 486) sorted by relevance

12345678910>>...20

/external/rust/crates/crossbeam-epoch/src/
Datomic.rs36 pub current: Shared<'g, T>,
365 pub fn load<'g>(&self, ord: Ordering, _: &'g Guard) -> Shared<'g, T> { in load()
366 unsafe { Shared::from_usize(self.data.load(ord)) } in load()
390 pub fn load_consume<'g>(&self, _: &'g Guard) -> Shared<'g, T> { in load_consume()
391 unsafe { Shared::from_usize(self.data.load_consume()) } in load_consume()
429 pub fn swap<'g, P: Pointer<T>>(&self, new: P, ord: Ordering, _: &'g Guard) -> Shared<'g, T> { in swap()
430 unsafe { Shared::from_usize(self.data.swap(new.into_usize(), ord)) } in swap()
465 current: Shared<'_, T>, in compare_exchange()
470 ) -> Result<Shared<'g, T>, CompareExchangeError<'g, T, P>> in compare_exchange()
477 .map(|_| unsafe { Shared::from_usize(new) }) in compare_exchange()
[all …]
/external/rust/cxx/tests/ffi/
Dlib.rs26 struct Shared { struct
96 fn c_return_shared() -> Shared; in c_return_shared()
100 fn c_return_ref(shared: &Shared) -> &usize; in c_return_ref()
101 fn c_return_mut(shared: &mut Shared) -> &mut usize; in c_return_mut()
102 fn c_return_str(shared: &Shared) -> &str; in c_return_str()
103 fn c_return_slice_char(shared: &Shared) -> &[c_char]; in c_return_slice_char()
110 fn c_return_unique_ptr_vector_shared() -> UniquePtr<CxxVector<Shared>>; in c_return_unique_ptr_vector_shared()
129 fn c_take_shared(shared: Shared); in c_take_shared() argument
135 fn c_take_slice_shared(s: &[Shared]); in c_take_slice_shared() argument
136 fn c_take_slice_shared_sort(s: &mut [Shared]); in c_take_slice_shared_sort() argument
[all …]
Dtests.cc39 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 …]
Dtests.h38 struct Shared;
88 Shared c_return_shared();
95 const size_t &c_return_ref(const Shared &shared);
98 size_t &c_return_mut(Shared &shared);
99 rust::Str c_return_str(const Shared &shared);
100 rust::Slice<const char> c_return_slice_char(const Shared &shared);
107 std::unique_ptr<std::vector<Shared>> c_return_unique_ptr_vector_shared();
125 void c_take_shared(Shared shared);
135 void c_take_slice_shared(rust::Slice<const Shared> s);
136 void c_take_slice_shared_sort(rust::Slice<Shared> s);
[all …]
/external/swiftshader/src/Vulkan/
DVkTimelineSemaphore.cpp31 …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()
DVkTimelineSemaphore.hpp31 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()
/external/swiftshader/third_party/marl/include/marl/
Devent.h106 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()
Dticket.h61 struct Shared;
80 std::shared_ptr<Shared> shared = std::make_shared<Shared>();
113 std::shared_ptr<Shared> shared;
122 struct Shared { struct
/external/rust/crates/tokio/src/task/
Dlocal.rs231 shared: Arc<Shared>,
236 owned: LinkedList<Task<Arc<Shared>>, <Task<Arc<Shared>> as Link>::Target>,
239 queue: VecDeque<task::Notified<Arc<Shared>>>,
243 struct Shared { struct
245 queue: Mutex<VecDeque<task::Notified<Arc<Shared>>>>, argument
333 shared: Arc::new(Shared { in new()
525 fn next_task(&self) -> Option<task::Notified<Arc<Shared>>> { in next_task() argument
649 impl Shared { impl
663 fn ptr_eq(&self, other: &Shared) -> bool { in ptr_eq()
668 impl task::Schedule for Arc<Shared> {
[all …]
/external/mesa3d/src/mesa/main/
Dtexturebindless.c46 mtx_lock(&ctx->Shared->HandlesMutex); in lookup_texture_handle()
48 _mesa_hash_table_u64_search(ctx->Shared->TextureHandles, id); in lookup_texture_handle()
49 mtx_unlock(&ctx->Shared->HandlesMutex); in lookup_texture_handle()
62 mtx_lock(&ctx->Shared->HandlesMutex); in lookup_image_handle()
64 _mesa_hash_table_u64_search(ctx->Shared->ImageHandles, id); in lookup_image_handle()
65 mtx_unlock(&ctx->Shared->HandlesMutex); in lookup_image_handle()
76 mtx_lock(&ctx->Shared->HandlesMutex); in delete_texture_handle()
77 _mesa_hash_table_u64_remove(ctx->Shared->TextureHandles, id); in delete_texture_handle()
78 mtx_unlock(&ctx->Shared->HandlesMutex); in delete_texture_handle()
89 mtx_lock(&ctx->Shared->HandlesMutex); in delete_image_handle()
[all …]
Drobustness.c139 simple_mtx_lock(&ctx->Shared->Mutex); in _mesa_GetGraphicsResetStatusARB()
147 ctx->Shared->ShareGroupReset = true; in _mesa_GetGraphicsResetStatusARB()
148 ctx->Shared->DisjointOperation = true; in _mesa_GetGraphicsResetStatusARB()
149 } else if (ctx->Shared->ShareGroupReset && !ctx->ShareGroupReset) { in _mesa_GetGraphicsResetStatusARB()
153 ctx->ShareGroupReset = ctx->Shared->ShareGroupReset; in _mesa_GetGraphicsResetStatusARB()
154 simple_mtx_unlock(&ctx->Shared->Mutex); in _mesa_GetGraphicsResetStatusARB()
Dsyncobj.c180 simple_mtx_lock(&ctx->Shared->Mutex); in _mesa_get_and_ref_sync()
182 && _mesa_set_search(ctx->Shared->SyncObjects, syncObj) != NULL in _mesa_get_and_ref_sync()
190 simple_mtx_unlock(&ctx->Shared->Mutex); in _mesa_get_and_ref_sync()
201 simple_mtx_lock(&ctx->Shared->Mutex); in _mesa_unref_sync_object()
204 entry = _mesa_set_search(ctx->Shared->SyncObjects, syncObj); in _mesa_unref_sync_object()
206 _mesa_set_remove(ctx->Shared->SyncObjects, entry); in _mesa_unref_sync_object()
207 simple_mtx_unlock(&ctx->Shared->Mutex); in _mesa_unref_sync_object()
211 simple_mtx_unlock(&ctx->Shared->Mutex); in _mesa_unref_sync_object()
295 simple_mtx_lock(&ctx->Shared->Mutex); in fence_sync()
296 _mesa_set_add(ctx->Shared->SyncObjects, syncObj); in fence_sync()
[all …]
Dexternalobjects.c110 _mesa_HashLockMutex(ctx->Shared->MemoryObjects); in _mesa_DeleteMemoryObjectsEXT()
117 _mesa_HashRemoveLocked(ctx->Shared->MemoryObjects, in _mesa_DeleteMemoryObjectsEXT()
123 _mesa_HashUnlockMutex(ctx->Shared->MemoryObjects); in _mesa_DeleteMemoryObjectsEXT()
166 _mesa_HashLockMutex(ctx->Shared->MemoryObjects); in _mesa_CreateMemoryObjectsEXT()
167 if (_mesa_HashFindFreeKeys(ctx->Shared->MemoryObjects, memoryObjects, n)) { in _mesa_CreateMemoryObjectsEXT()
175 _mesa_HashUnlockMutex(ctx->Shared->MemoryObjects); in _mesa_CreateMemoryObjectsEXT()
180 _mesa_HashInsertLocked(ctx->Shared->MemoryObjects, in _mesa_CreateMemoryObjectsEXT()
186 _mesa_HashUnlockMutex(ctx->Shared->MemoryObjects); in _mesa_CreateMemoryObjectsEXT()
601 _mesa_HashLockMutex(ctx->Shared->SemaphoreObjects); in _mesa_GenSemaphoresEXT()
602 if (_mesa_HashFindFreeKeys(ctx->Shared->SemaphoreObjects, semaphores, n)) { in _mesa_GenSemaphoresEXT()
[all …]
Dtexobj.c111 _mesa_HashLookup(ctx->Shared->TexObjects, id); in _mesa_lookup_texture()
137 _mesa_HashLookupLocked(ctx->Shared->TexObjects, id); in _mesa_lookup_texture_locked()
955 if (!ctx->Shared->FallbackTex[tex]) { in _mesa_get_fallback_texture()
1065 ctx->Shared->FallbackTex[tex] = texObj; in _mesa_get_fallback_texture()
1072 return ctx->Shared->FallbackTex[tex]; in _mesa_get_fallback_texture()
1123 _mesa_HashWalk(ctx->Shared->TexObjects, count_tex_size, &total); in _mesa_total_texture_memory()
1127 total += texture_size(ctx->Shared->DefaultTex[tgt]); in _mesa_total_texture_memory()
1221 _mesa_HashLockMutex(ctx->Shared->TexObjects); in create_textures()
1223 _mesa_HashFindFreeKeys(ctx->Shared->TexObjects, textures, n); in create_textures()
1230 _mesa_HashUnlockMutex(ctx->Shared->TexObjects); in create_textures()
[all …]
/external/rust/cxx/tests/
Dtest.rs36 let shared = ffi::Shared { z: 2020 }; in test_c_return()
118 check!(ffi::c_take_shared(ffi::Shared { z: 2020 })); in test_c_take()
129 ffi::Shared { z: 2020 }, in test_c_take()
130 ffi::Shared { z: 2021 }, in test_c_take()
133 ffi::Shared { z: 2 }, in test_c_take()
134 ffi::Shared { z: 0 }, in test_c_take()
135 ffi::Shared { z: 7 }, in test_c_take()
136 ffi::Shared { z: 4 }, in test_c_take()
166 let shared_test_vec = vec![ffi::Shared { z: 1010 }, ffi::Shared { z: 1011 }]; in test_c_take()
174 ffi::Shared { z: 2 }, in test_c_take()
[all …]
/external/rust/cxx/tests/ui/
Dunique_ptr_as_mut.rs5 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()
Ddrop_shared.stderr1 error[E0119]: conflicting implementations of trait `ffi::_::forbid::Drop` for type `ffi::Shared`
7 3 | struct Shared {
8 | ^^^^^^^^^^^^^ conflicting implementation for `ffi::Shared`
Ddrop_shared.rs3 struct Shared { struct
8 impl Drop for ffi::Shared { argument
/external/rust/crates/futures-util/src/future/future/
Dshared.rs14 pub struct Shared<Fut: Future> { struct
34 impl<Fut: Future> Unpin for Shared<Fut> {} implementation
36 impl<Fut: Future> fmt::Debug for Shared<Fut> { implementation
83 impl<Fut: Future> Shared<Fut> { impl
100 impl<Fut> Shared<Fut> impl
206 impl<Fut> FusedFuture for Shared<Fut> implementation
216 impl<Fut> Future for Shared<Fut> implementation
328 impl<Fut> Clone for Shared<Fut> implementation
340 impl<Fut> Drop for Shared<Fut> implementation
376 pub fn upgrade(&self) -> Option<Shared<Fut>> { in upgrade()
[all …]
/external/rust/crates/tokio/src/runtime/
Dbasic_scheduler.rs56 shared: Arc<Shared>,
61 owned: LinkedList<Task<Arc<Shared>>, <Task<Arc<Shared>> as Link>::Target>,
66 queue: VecDeque<task::Notified<Arc<Shared>>>,
74 Schedule(task::Notified<Arc<Shared>>),
86 struct Shared { struct
100 shared: Arc<Shared>,
126 shared: Arc::new(Shared { in new()
415 impl Schedule for Arc<Shared> {
416 fn bind(task: Task<Self>) -> Arc<Shared> { in bind() argument
455 impl Wake for Shared { implementation
/external/llvm-project/compiler-rt/test/ubsan/TestCases/TypeCheck/Function/
Dfunction.cpp24 struct Shared {}; struct
25 using FnShared = void (*)(Shared *);
40 void fnShared(Shared *) {} in fnShared() argument
/external/skia/src/sksl/ir/
DSkSLProgram.h155 using Shared = std::vector<const ProgramElement*>::const_iterator; member
158 iterator(Owned owned, Owned ownedEnd, Shared shared, Shared sharedEnd) in iterator()
163 Shared fShared;
164 Shared fSharedEnd;
/external/llvm/tools/llvm-config/
Dllvm-config.cpp432 const bool Shared) { in main() argument
434 if (Shared) { in main()
444 auto GetComponentLibraryPath = [&](const StringRef &Name, const bool Shared) { in main() argument
445 auto LibFileName = GetComponentLibraryFileName(Name, Shared); in main()
446 if (Shared) { in main()
642 const bool Shared = LinkMode == LinkModeShared; in main() local
644 OS << GetComponentLibraryFileName(Lib, Shared); in main()
646 OS << GetComponentLibraryPath(Lib, Shared); in main()
651 OS << GetComponentLibraryPath(Lib, Shared); in main()
/external/rust/crates/tokio/src/sync/
Dwatch.rs74 shared: Arc<Shared<T>>,
85 shared: Arc<Shared<T>>,
99 struct Shared<T> { struct
185 let shared = Arc::new(Shared { in channel()
203 fn from_shared(version: usize, shared: Arc<Shared<T>>) -> Self { in from_shared()
282 shared: &Shared<T>, in maybe_changed()
/external/libcxxabi/test/
Ddynamic_cast.pass.cpp77 struct Shared : virtual Class1 { Pad2 _; }; struct
78 struct Class6 : virtual Shared { Pad3 _; };
89 assert(dynamic_cast<Shared*>(c1) == static_cast<Shared*>(&m)); in test()

12345678910>>...20