Home
last modified time | relevance | path

Searched refs:JobsEventCounter (Results 1 – 2 of 2) sorted by relevance

/external/rust/crates/rayon-core/src/sleep/
Dcounters.rs27 pub(super) struct JobsEventCounter(usize); struct
29 impl JobsEventCounter { impl
30 pub(super) const DUMMY: JobsEventCounter = JobsEventCounter(std::usize::MAX);
124 increment_when: impl Fn(JobsEventCounter) -> bool, in increment_jobs_event_counter_if()
233 pub(super) fn jobs_counter(self) -> JobsEventCounter { in jobs_counter() argument
234 JobsEventCounter(select_jec(self.word)) in jobs_counter()
Dmod.rs14 use self::counters::{AtomicCounters, JobsEventCounter};
47 jobs_counter: JobsEventCounter,
84 jobs_counter: JobsEventCounter::DUMMY, in start_looking()
125 fn announce_sleepy(&self, worker_index: usize) -> JobsEventCounter { in announce_sleepy() argument
128 .increment_jobs_event_counter_if(JobsEventCounter::is_active); in announce_sleepy()
308 .increment_jobs_event_counter_if(JobsEventCounter::is_sleepy); in new_jobs()
385 self.jobs_counter = JobsEventCounter::DUMMY; in wake_fully()
390 self.jobs_counter = JobsEventCounter::DUMMY; in wake_partly()