Lines Matching refs:tasks
42 tasks: Option<Tasks>, field
103 tasks: RefCell<Tasks>, field
134 tasks: Some(Tasks { in new()
226 .tasks in block_on()
234 .tasks in block_on()
261 let removed = context.tasks.borrow_mut().owned.remove(ptr); in block_on()
304 let Context { tasks, .. } = self.context.take().expect("context missing"); in enter()
305 self.scheduler.tasks = Some(tasks.into_inner()); in enter()
310 let tasks = scheduler.tasks.take().expect("invalid state"); in enter() localVariable
315 tasks: RefCell::new(tasks), in enter()
341 let task = match context.tasks.borrow_mut().owned.pop_back() { in drop()
350 for task in context.tasks.borrow_mut().queue.drain(..) { in drop()
367 assert!(context.tasks.borrow().owned.is_empty()); in drop()
419 cx.tasks.borrow_mut().owned.push_front(task); in bind()
430 unsafe { cx.tasks.borrow_mut().owned.remove(ptr) } in release()
445 cx.tasks.borrow_mut().queue.push_back(task); in schedule()