Home
last modified time | relevance | path

Searched refs:steal (Results 1 – 25 of 75) sorted by relevance

123

/external/rust/crates/crossbeam-deque/tests/
Dinjector.rs13 assert_eq!(q.steal(), Empty); in smoke()
17 assert_eq!(q.steal(), Success(1)); in smoke()
18 assert_eq!(q.steal(), Success(2)); in smoke()
19 assert_eq!(q.steal(), Empty); in smoke()
22 assert_eq!(q.steal(), Success(3)); in smoke()
23 assert_eq!(q.steal(), Empty); in smoke()
36 let _ = q.steal(); in is_empty()
38 let _ = q.steal(); in is_empty()
43 let _ = q.steal(); in is_empty()
60 if let Success(v) = q.steal() { in spsc()
[all …]
Dfifo.rs15 assert_eq!(s.steal(), Empty); in smoke()
20 assert_eq!(s.steal(), Empty); in smoke()
23 assert_eq!(s.steal(), Success(2)); in smoke()
24 assert_eq!(s.steal(), Empty); in smoke()
30 assert_eq!(s.steal(), Success(3)); in smoke()
31 assert_eq!(s.steal(), Success(4)); in smoke()
32 assert_eq!(s.steal(), Success(5)); in smoke()
33 assert_eq!(s.steal(), Empty); in smoke()
40 assert_eq!(s.steal(), Success(7)); in smoke()
66 let _ = s.steal(); in is_empty()
[all …]
Dlifo.rs15 assert_eq!(s.steal(), Empty); in smoke()
20 assert_eq!(s.steal(), Empty); in smoke()
23 assert_eq!(s.steal(), Success(2)); in smoke()
24 assert_eq!(s.steal(), Empty); in smoke()
30 assert_eq!(s.steal(), Success(3)); in smoke()
31 assert_eq!(s.steal(), Success(4)); in smoke()
32 assert_eq!(s.steal(), Success(5)); in smoke()
33 assert_eq!(s.steal(), Empty); in smoke()
40 assert_eq!(s.steal(), Success(6)); in smoke()
66 let _ = s.steal(); in is_empty()
[all …]
Dsteal.rs12 assert_eq!(s.steal(), Success(1)); in steal_fifo()
13 assert_eq!(s.steal(), Success(2)); in steal_fifo()
14 assert_eq!(s.steal(), Success(3)); in steal_fifo()
25 assert_eq!(s.steal(), Success(1)); in steal_lifo()
26 assert_eq!(s.steal(), Success(2)); in steal_lifo()
27 assert_eq!(s.steal(), Success(3)); in steal_lifo()
37 assert_eq!(q.steal(), Success(1)); in steal_injector()
38 assert_eq!(q.steal(), Success(2)); in steal_injector()
39 assert_eq!(q.steal(), Success(3)); in steal_injector()
/external/rust/crates/tokio/src/runtime/tests/
Dloom_queue.rs11 let (steal, mut local) = queue::local(); in basic()
21 if steal.steal_into(&mut local, &mut metrics).is_some() { in basic()
67 let (steal, mut local) = queue::local(); in steal_overflow()
76 if steal.steal_into(&mut local, &mut metrics).is_some() { in steal_overflow()
120 fn steal_tasks(steal: queue::Steal<NoopSchedule>) -> usize { in multi_stealer()
124 if steal.steal_into(&mut local, &mut metrics).is_none() { in multi_stealer()
138 let (steal, mut local) = queue::local(); in multi_stealer()
149 let steal = steal.clone(); in multi_stealer() localVariable
150 thread::spawn(move || steal_tasks(steal)) in multi_stealer()
153 let th2 = thread::spawn(move || steal_tasks(steal)); in multi_stealer()
Dqueue.rs123 let (steal, mut local) = queue::local(); in stress1()
132 if steal.steal_into(&mut local, &mut metrics).is_some() { in stress1()
186 let (steal, mut local) = queue::local(); in stress2()
195 if steal.steal_into(&mut local, &mut stats).is_some() { in stress2()
/external/rust/crates/tokio/src/runtime/scheduler/multi_thread/
Dqueue.rs130 let (steal, real) = unpack(head); in push_back()
135 if tail.wrapping_sub(steal) < LOCAL_QUEUE_CAPACITY as UnsignedShort { in push_back()
138 } else if steal != real { in push_back()
283 let (steal, real) = unpack(head); in pop()
297 let next = if steal == real { in pop()
300 assert_ne!(steal, next_real); in pop()
301 pack(steal, next_real) in pop()
338 let (steal, _) = unpack(dst.inner.head.load(Acquire)); in steal_into()
340 if dst_tail.wrapping_sub(steal) > LOCAL_QUEUE_CAPACITY as UnsignedShort / 2 { in steal_into()
520 let steal = n >> (mem::size_of::<UnsignedShort>() * 8); in unpack() localVariable
[all …]
Dworker.rs156 steal: queue::Steal<Arc<Handle>>, field
202 let (steal, run_queue) = queue::local(); in create()
218 remotes.push(Remote { steal, unpark }); in create()
624 .steal in steal_work()
833 if !remote.steal.is_empty() { in notify_if_work_pending()
898 self.remotes[worker].steal.len()
/external/rust/crates/crossbeam-deque/
DCHANGELOG.md12 - Fix deque steal race condition. (#726)
25 - Fix deque steal race condition.
53 - Add more batched steal methods.
89 - Return `Option<T>` from `Stealer::steal`.
92 - Remove method `Deque::steal`.
DAndroid.bp99 srcs: ["tests/steal.rs"],
/external/cronet/base/android/
Dscoped_java_ref.h85 void steal(JavaRef&& other) { in steal() function
203 JavaRef<T>::steal(std::move(other)); in ScopedJavaLocalRef()
210 JavaRef<T>::steal(std::move(other)); in ScopedJavaLocalRef()
250 JavaRef<T>::steal(std::move(other));
327 JavaRef<T>::steal(std::move(other)); in ScopedJavaGlobalRef()
334 JavaRef<T>::steal(std::move(other)); in ScopedJavaGlobalRef()
371 JavaRef<T>::steal(std::move(other));
/external/libdrm/tests/kms/
Dmeson.build34 'kms-steal-crtc',
35 files('kms-steal-crtc.c'),
/external/linux-kselftest/tools/testing/selftests/kvm/
Dsteal_time.c49 WRITE_ONCE(guest_stolen_time[cpu], st->steal); in guest_code()
56 WRITE_ONCE(guest_stolen_time[cpu], st->steal); in guest_code()
91 pr_info(" steal: %lld\n", st->steal); in steal_time_dump()
/external/autotest/server/cros/
Dresource_monitor.py130 steal) = _extract_values_before_keywords(curr_line,
148 IOWait=io_wait, IRQ=irq, SoftIRQ=sirq, Steal=steal,
/external/rust/crates/rayon-core/src/
Dregistry.rs454 match self.injected_jobs.steal() { in pop_injected_job()
785 match self.stealer.steal() { in take_local_job()
848 .or_else(|| self.steal()) in find_work()
881 fn steal(&self) -> Option<JobRef> { in steal() method
900 match victim.stealer.steal() { in steal()
Djob.rs263 match this.inner.steal() { in execute()
/external/kernel-headers/original/uapi/asm-x86/asm/
Dkvm_para.h63 __u64 steal; member
/external/skia/src/gpu/ganesh/mtl/
DGrMtlSemaphore.mm41 // Whoever uses the GrBackendSemaphore will subsquently steal this ref (see MakeWrapped, above).
/external/hyphenation-patterns/es/
DNOTICE29 % to steal parts of his work without restrictions. For his
Dhyph-es.lic.txt37 % to steal parts of his work without restrictions. For his
/external/swiftshader/third_party/marl/docs/
Dscheduler.md147 1. It attempts to steal work from other workers to keep worker work-loads evenly balanced.
149 …ForWork()` is only called when the worker is starved, and will attempt to steal tasks from randoml…
160 … no new work was scheduled, an attempt is made to steal a task from another random worker. If the
161 - If the steal was unsuccessful, `std::this_thread::yield()` is called to prevent marl from starvin…
/external/bcc/tools/
Dbiosnoop_example.txt36 avg-cpu: %user %nice %system %iowait %steal %idle
/external/clang/include/clang/Sema/
DDelayedDiagnostic.h277 void steal(DelayedDiagnosticPool &pool) { in steal() function
/external/python/cpython3/Doc/c-api/
Ddict.rst67 ``0`` on success or ``-1`` on failure. This function *does not* steal a
78 failure. This function *does not* steal a reference to *val*.
Dmapping.rst40 See also :c:func:`PyObject_SetItem`. This function *does not* steal a

123