Home
last modified time | relevance | path

Searched refs:Sync (Results 1 – 25 of 574) sorted by relevance

12345678910>>...23

/external/rust/crates/futures/tests/
Dauto_traits.rs19 pub type SyncFuture<T = *const ()> = Pin<Box<dyn Future<Output = T> + Sync>>;
36 pub type SyncStream<T = *const ()> = Pin<Box<dyn Stream<Item = T> + Sync>>;
51 pub type SyncSink<T = *const (), E = *const ()> = Pin<Box<dyn Sink<T, Error = E> + Sync>>;
77 assert_impl!(mpsc::Receiver<()>: Sync);
78 assert_not_impl!(mpsc::Receiver<*const ()>: Sync);
82 assert_impl!(mpsc::SendError: Sync);
87 assert_impl!(mpsc::Sender<()>: Sync);
88 assert_not_impl!(mpsc::Sender<*const ()>: Sync);
92 assert_impl!(mpsc::TryRecvError: Sync);
97 assert_impl!(mpsc::TrySendError<()>: Sync);
[all …]
/external/rust/crates/tokio/tests/
Dasync_send_sync.rs15 type BoxFutureSync<T> = std::pin::Pin<Box<dyn std::future::Future<Output = T> + Send + Sync>>;
31 fn require_sync<T: Sync>(_t: &T) {} in require_sync()
48 impl<T: ?Sized + Sync> AmbiguousIfSync<Invalid> for T {}
63 ($type:ty: Send & Sync) => {
72 ($type:ty: !Send & Sync) => {
81 ($type:ty: Send & !Sync) => {
90 ($type:ty: !Send & !Sync) => {
109 ($($f:ident $(< $($generic:ty),* > )? )::+($($arg:ty),*): Send & Sync) => {
118 ($($f:ident $(< $($generic:ty),* > )? )::+($($arg:ty),*): Send & !Sync) => {
127 ($($f:ident $(< $($generic:ty),* > )? )::+($($arg:ty),*): !Send & Sync) => {
[all …]
/external/angle/src/libANGLE/
DEGLSync.cpp21 Sync::Sync(rx::EGLImplFactory *factory, EGLenum type, const AttributeMap &attribs) in Sync() function in egl::Sync
55 void Sync::onDestroy(const Display *display) in onDestroy()
62 Sync::~Sync() {} in ~Sync()
64 Error Sync::initialize(const Display *display, const gl::Context *context) in initialize()
69 void Sync::setLabel(EGLLabelKHR label) in setLabel()
74 EGLLabelKHR Sync::getLabel() const in getLabel()
79 Error Sync::clientWait(const Display *display, in clientWait()
88 Error Sync::serverWait(const Display *display, const gl::Context *context, EGLint flags) in serverWait()
93 Error Sync::signal(const Display *display, const gl::Context *context, EGLint mode) in signal()
98 Error Sync::getStatus(const Display *display, EGLint *outStatus) const in getStatus()
[all …]
DFence.cpp66 Sync::Sync(rx::GLImplFactory *factory, GLuint id) in Sync() function in gl::Sync
74 void Sync::onDestroy(const Context *context) in onDestroy()
80 Sync::~Sync() in ~Sync()
85 void Sync::setLabel(const Context *context, const std::string &label) in setLabel()
90 const std::string &Sync::getLabel() const in getLabel()
95 angle::Result Sync::set(const Context *context, GLenum condition, GLbitfield flags) in set()
104 angle::Result Sync::clientWait(const Context *context, in clientWait()
113 angle::Result Sync::serverWait(const Context *context, GLbitfield flags, GLuint64 timeout) in serverWait()
118 angle::Result Sync::getStatus(const Context *context, GLint *outResult) const in getStatus()
/external/rust/crates/tokio/src/sync/
Drwlock.rs103 fn check_sync<T: Sync>() {} in bounds() argument
106 fn check_send_sync_val<T: Send + Sync>(_t: T) {} in bounds()
147 unsafe impl<T> Sync for RwLock<T> where T: ?Sized + Send + Sync {}
151 unsafe impl<T> Send for RwLockReadGuard<'_, T> where T: ?Sized + Sync {}
152 unsafe impl<T> Sync for RwLockReadGuard<'_, T> where T: ?Sized + Send + Sync {}
157 T: ?Sized + Send + Sync,
158 U: ?Sized + Sync,
161 unsafe impl<T, U> Sync for OwnedRwLockReadGuard<T, U>
163 T: ?Sized + Send + Sync,
164 U: ?Sized + Send + Sync,
[all …]
/external/rust/crates/proc-macro2/tests/
Dmarker.rs40 assert_impl!(Delimiter is Send and Sync);
41 assert_impl!(Spacing is Send and Sync);
43 assert_impl!(Group is not Send or Sync);
44 assert_impl!(Ident is not Send or Sync);
45 assert_impl!(LexError is not Send or Sync);
46 assert_impl!(Literal is not Send or Sync);
47 assert_impl!(Punct is not Send or Sync);
48 assert_impl!(Span is not Send or Sync);
49 assert_impl!(TokenStream is not Send or Sync);
50 assert_impl!(TokenTree is not Send or Sync);
[all …]
/external/libchrome/ui/gfx/geometry/mojo/
Dgeometry_traits_test_service.mojom12 [Sync]
15 [Sync]
18 [Sync]
21 [Sync]
24 [Sync]
27 [Sync]
30 [Sync]
33 [Sync]
36 [Sync]
39 [Sync]
/external/rust/crates/rayon/src/collections/
Dbtree_map.rs30 pub struct Iter<'a, K: Ord + Sync, V: Sync> {
34 impl<'a, K: Ord + Sync, V: Sync> Clone for Iter<'a, K, V> {
44 impl<'a, K: Ord + Sync, V: Sync>
49 impl<'a, K: Ord + Sync + 'a, V: Sync + 'a>
54 pub struct IterMut<'a, K: Ord + Sync, V: Send> {
60 impl<'a, K: Ord + Sync, V: Send>
65 impl<'a, K: Ord + Sync + 'a, V: Send + 'a>
Dhash_map.rs32 pub struct Iter<'a, K: Hash + Eq + Sync, V: Sync> {
36 impl<'a, K: Hash + Eq + Sync, V: Sync> Clone for Iter<'a, K, V> {
46 impl<'a, K: Hash + Eq + Sync, V: Sync, S: BuildHasher>
51 impl<'a, K: Hash + Eq + Sync + 'a, V: Sync + 'a>
56 pub struct IterMut<'a, K: Hash + Eq + Sync, V: Send> {
62 impl<'a, K: Hash + Eq + Sync, V: Send, S: BuildHasher>
67 impl<'a, K: Hash + Eq + Sync + 'a, V: Send + 'a>
/external/libchrome/mojo/public/interfaces/bindings/tests/
Dtest_sync_methods.mojom8 [Sync]
11 [Sync]
14 [Sync]
17 [Sync]
22 [Sync]
25 [Sync]
33 [Sync]
36 [Sync]
/external/rust/crates/rayon/src/iter/
Dmod.rs367 OP: Fn(Self::Item) + Sync + Send, in for_each()
397 OP: Fn(&mut T, Self::Item) + Sync + Send, in for_each_with()
431 OP: Fn(&mut T, Self::Item) + Sync + Send, in for_each_init()
432 INIT: Fn() -> T + Sync + Send, in for_each_init()
459 OP: Fn(Self::Item) -> R + Sync + Send, in try_for_each()
498 OP: Fn(&mut T, Self::Item) -> R + Sync + Send, in try_for_each_with()
540 OP: Fn(&mut T, Self::Item) -> R + Sync + Send, in try_for_each_init()
541 INIT: Fn() -> T + Sync + Send, in try_for_each_init()
586 F: Fn(Self::Item) -> R + Sync + Send, in map()
623 F: Fn(&mut T, Self::Item) -> R + Sync + Send, in map_with()
[all …]
Dfold.rs9 F: Fn(U, I::Item) -> U + Sync + Send,
10 ID: Fn() -> U + Sync + Send,
44 F: Fn(U, I::Item) -> U + Sync + Send,
45 ID: Fn() -> U + Sync + Send,
72 F: Fn(U, T) -> U + Sync,
73 ID: Fn() -> U + Sync,
108 F: Fn(U, T) -> U + Sync,
109 ID: Fn() -> U + Sync,
133 F: Fn(ID, T) -> ID + Sync,
185 F: Fn(U, I::Item) -> U + Sync + Send,
[all …]
Dreduce.rs7 R: Fn(T, T) -> T + Sync, in reduce() argument
8 ID: Fn() -> T + Sync, in reduce() argument
33 R: Fn(T, T) -> T + Sync,
34 ID: Fn() -> T + Sync,
59 R: Fn(T, T) -> T + Sync,
60 ID: Fn() -> T + Sync,
74 R: Fn(T, T) -> T + Sync,
Dtry_fold.rs11 F: Fn(U::Ok, I::Item) -> U + Sync + Send,
12 ID: Fn() -> U::Ok + Sync + Send,
48 F: Fn(U::Ok, I::Item) -> U + Sync + Send,
49 ID: Fn() -> U::Ok + Sync + Send,
78 F: Fn(U::Ok, T) -> U + Sync,
79 ID: Fn() -> U::Ok + Sync,
114 F: Fn(U::Ok, T) -> U + Sync,
115 ID: Fn() -> U::Ok + Sync,
139 F: Fn(U::Ok, T) -> U + Sync,
170 F: Fn(U::Ok, I::Item) -> U + Sync,
[all …]
Dmap_with.rs43 F: Fn(&mut T, I::Item) -> R + Sync + Send,
65 F: Fn(&mut T, I::Item) -> R + Sync + Send,
100 F: Fn(&mut U, T) -> R + Sync, in with_producer()
132 F: Fn(&mut U, P::Item) -> R + Sync,
191 F: Fn(&mut U, I::Item) -> R + Sync,
209 F: Fn(&mut U, I::Item) -> R + Sync,
221 F: Fn(&mut U, I::Item) -> R + Sync,
245 F: Fn(&mut U, T) -> R + Sync,
278 F: Fn(&mut U, T) -> R + Sync,
371 INIT: Fn() -> T + Sync + Send,
[all …]
Dtry_reduce.rs10 R: Fn(T::Ok, T::Ok) -> T + Sync, in try_reduce() argument
11 ID: Fn() -> T::Ok + Sync, in try_reduce() argument
39 R: Fn(T::Ok, T::Ok) -> T + Sync,
40 ID: Fn() -> T::Ok + Sync,
66 R: Fn(T::Ok, T::Ok) -> T + Sync,
67 ID: Fn() -> T::Ok + Sync,
81 R: Fn(T::Ok, T::Ok) -> T + Sync,
/external/rust/crates/rayon/src/slice/
Dmod.rs25 pub trait ParallelSlice<T: Sync> {
45 P: Fn(&T) -> bool + Sync + Send, in par_split()
120 impl<T: Sync> ParallelSlice<T> for [T] {
147 P: Fn(&T) -> bool + Sync + Send, in par_split_mut()
286 F: Fn(&T, &T) -> Ordering + Sync, in par_sort_by() argument
329 F: Fn(&T) -> B + Sync, in par_sort_by_key() argument
409 F: Fn(&T, &T) -> Ordering + Sync, in par_sort_unstable_by() argument
451 F: Fn(&T) -> B + Sync, in par_sort_unstable_by_key() argument
464 impl<'data, T: Sync + 'data> IntoParallelIterator for &'data [T] {
473 impl<'data, T: Sync + 'data> IntoParallelIterator for &'data Vec<T> {
[all …]
/external/rust/crates/anyhow/src/
Derror.rs30 E: StdError + Send + Sync + 'static, in new()
75 M: Display + Debug + Send + Sync + 'static, in msg()
83 E: StdError + Send + Sync + 'static, in from_std()
105 M: Display + Debug + Send + Sync + 'static, in from_adhoc()
130 M: Display + Send + Sync + 'static, in from_display()
156 C: Display + Send + Sync + 'static, in from_context()
157 E: StdError + Send + Sync + 'static, in from_context()
181 error: Box<dyn StdError + Send + Sync>, in from_boxed() argument
192 object_downcast: object_downcast::<Box<dyn StdError + Send + Sync>>, in from_boxed()
194 object_downcast_mut: object_downcast_mut::<Box<dyn StdError + Send + Sync>>, in from_boxed()
[all …]
Dcontext.rs15 C: Display + Send + Sync + 'static; in ext_context()
21 E: std::error::Error + Send + Sync + 'static,
25 C: Display + Send + Sync + 'static, in ext_context()
35 C: Display + Send + Sync + 'static, in ext_context()
44 E: ext::StdError + Send + Sync + 'static,
48 C: Display + Send + Sync + 'static, in context()
55 C: Display + Send + Sync + 'static, in with_context()
85 C: Display + Send + Sync + 'static, in context()
92 C: Display + Send + Sync + 'static, in with_context()
/external/rust/crates/tokio-stream/tests/
Dasync_send_sync.rs9 fn require_sync<T: Sync>(_t: &T) {} in require_sync()
26 impl<T: ?Sized + Sync> AmbiguousIfSync<Invalid> for T {}
42 ($($f:ident $(< $($generic:ty),* > )? )::+($($arg:ty),*): Send & Sync) => {
51 ($($f:ident $(< $($generic:ty),* > )? )::+($($arg:ty),*): Send & !Sync) => {
60 ($($f:ident $(< $($generic:ty),* > )? )::+($($arg:ty),*): !Send & Sync) => {
69 ($($f:ident $(< $($generic:ty),* > )? )::+($($arg:ty),*): !Send & !Sync) => {
96 async_assert_fn!(tokio_stream::empty<Rc<u8>>(): Send & Sync);
97 async_assert_fn!(tokio_stream::pending<Rc<u8>>(): Send & Sync);
98 async_assert_fn!(tokio_stream::iter(std::vec::IntoIter<u8>): Send & Sync);
/external/llvm-project/compiler-rt/test/tsan/
Datomic_store.cpp5 long long Sync; variable
9 __atomic_store_n(&Sync, 1, __ATOMIC_RELEASE); in Thread1()
17 if (__atomic_load_n(&Sync, __ATOMIC_RELAXED) != 1) in Thread2()
21 __atomic_store_n(&Sync, 2, __ATOMIC_RELEASE); in Thread2()
33 if (__atomic_load_n(&Sync, __ATOMIC_ACQUIRE) != 2) in main()
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DCommonTokenStream.cs87 Sync(_p); in Consume()
90 Sync(_p); in Consume()
137 Sync(i); in SkipOffTokenChannels()
141 Sync(i); in SkipOffTokenChannels()
156 Sync(0); in Setup()
160 Sync(i); in Setup()
/external/lzma/CPP/7zip/UI/FileManager/
DProgressDialog2.cpp299 if (Sync.Get_Paused()) in SetTaskbarProgressState()
556 void CProgressDialog::OnCancel() { Sync.Set_Stopped(true); } in OnCancel()
688 NSynchronization::CCriticalSectionLock lock(Sync._cs); in UpdateStatInfo()
689 total = Sync._totalBytes; in UpdateStatInfo()
690 completed = Sync._completedBytes; in UpdateStatInfo()
691 totalFiles = Sync._totalFiles; in UpdateStatInfo()
692 completedFiles = Sync._curFiles; in UpdateStatInfo()
693 inSize = Sync._inSize; in UpdateStatInfo()
694 outSize = Sync._outSize; in UpdateStatInfo()
695 bytesProgressMode = Sync._bytesProgressMode; in UpdateStatInfo()
[all …]
/external/rust/crates/hashbrown/src/external_trait_impls/rayon/
Dset.rs45 impl<T: Send, A: Allocator + Clone + Send + Sync> ParallelIterator for ParDrain<'_, T, A> {
69 impl<'a, T: Sync> ParallelIterator for ParIter<'a, T> {
95 T: Eq + Hash + Sync,
96 S: BuildHasher + Sync,
97 A: Allocator + Clone + Sync,
128 T: Eq + Hash + Sync,
129 S: BuildHasher + Sync,
130 A: Allocator + Clone + Sync,
160 T: Eq + Hash + Sync,
161 S: BuildHasher + Sync,
[all …]
/external/angle/src/libANGLE/renderer/metal/
DSyncMtl.h37 class Sync
40 Sync();
41 ~Sync();
63 class Sync
107 mtl::Sync mSync;
129 mtl::Sync mSync;
156 mtl::Sync mSync;

12345678910>>...23