• Home
  • Raw
  • Download

Lines Matching full:scope

16     thread::scope(|scope| {  in join()
17 let handle = scope.spawn(|_| { in join()
22 let panic_handle = scope.spawn(|_| { in join()
36 thread::scope(|scope| { in counter()
38 scope.spawn(|_| { in counter()
51 thread::scope(|scope| { in counter_builder()
53 scope in counter_builder()
73 let result = thread::scope(|scope| { in counter_panic()
74 scope.spawn(|_| { in counter_panic()
80 scope.spawn(|_| { in counter_panic()
94 let result = thread::scope(|scope| { in panic_twice()
95 scope.spawn(|_| { in panic_twice()
99 scope.spawn(|_| { in panic_twice()
120 let result = thread::scope(|scope| { in panic_many()
121 scope.spawn(|_| panic!("deliberate panic #1")); in panic_many()
122 scope.spawn(|_| panic!("deliberate panic #2")); in panic_many()
123 scope.spawn(|_| panic!("deliberate panic #3")); in panic_many()
151 fn recurse(&'a self, scope: &thread::Scope<'a>, depth: usize) { in nesting()
155 scope.spawn(move |scope| { in nesting()
156 self.recurse(scope, depth - 1); in nesting()
164 thread::scope(|scope| { in nesting()
165 scope.spawn(|scope| { in nesting()
166 scope.spawn(|scope| { in nesting()
167 wrapper.recurse(scope, 5); in nesting()
176 thread::scope(|scope| { in join_nested()
177 scope.spawn(|scope| { in join_nested()
178 let handle = scope.spawn(|_| 7); in join_nested()
191 let result = thread::scope(|scope| scope.spawn(|_| 1234).join().unwrap()).unwrap(); in scope_returns_ok()
199 thread::scope(|scope| { in as_pthread_t()
200 let handle = scope.spawn(|_scope| { in as_pthread_t()
214 thread::scope(|scope| { in as_raw_handle()
215 let handle = scope.spawn(|_scope| { in as_raw_handle()