• Home
  • Raw
  • Download

Lines Matching full:schedule

59 // Creates a schedule function with event counters.
61 // Usage: `schedule!(s, chan, SCHED, DROP)`
63 // The schedule function `s` pushes the task into `chan`.
68 macro_rules! schedule { macro
103 schedule!(s, chan, SCHEDULE, DROP_S); in wake()
111 assert_eq!(SCHEDULE.load(Ordering::SeqCst), 0); in wake()
119 assert_eq!(SCHEDULE.load(Ordering::SeqCst), 1); in wake()
126 assert_eq!(SCHEDULE.load(Ordering::SeqCst), 1); in wake()
133 assert_eq!(SCHEDULE.load(Ordering::SeqCst), 1); in wake()
142 schedule!(s, chan, SCHEDULE, DROP_S); in wake_by_ref()
150 assert_eq!(SCHEDULE.load(Ordering::SeqCst), 0); in wake_by_ref()
158 assert_eq!(SCHEDULE.load(Ordering::SeqCst), 1); in wake_by_ref()
165 assert_eq!(SCHEDULE.load(Ordering::SeqCst), 1); in wake_by_ref()
172 assert_eq!(SCHEDULE.load(Ordering::SeqCst), 1); in wake_by_ref()
181 schedule!(s, chan, SCHEDULE, DROP_S); in clone()
187 assert_eq!(SCHEDULE.load(Ordering::SeqCst), 0); in clone()
200 assert_eq!(SCHEDULE.load(Ordering::SeqCst), 1); in clone()
207 assert_eq!(SCHEDULE.load(Ordering::SeqCst), 1); in clone()
220 schedule!(s, chan, SCHEDULE, DROP_S); in wake_dropped()
226 assert_eq!(SCHEDULE.load(Ordering::SeqCst), 0); in wake_dropped()
236 assert_eq!(SCHEDULE.load(Ordering::SeqCst), 1); in wake_dropped()
243 assert_eq!(SCHEDULE.load(Ordering::SeqCst), 1); in wake_dropped()
252 schedule!(s, chan, SCHEDULE, DROP_S); in wake_completed()
259 assert_eq!(SCHEDULE.load(Ordering::SeqCst), 0); in wake_completed()
267 assert_eq!(SCHEDULE.load(Ordering::SeqCst), 1); in wake_completed()
274 assert_eq!(SCHEDULE.load(Ordering::SeqCst), 1); in wake_completed()