()
| 1141 | }); |
| 1142 | assert_eq!(x, 22); |
| 1143 | |
| 1144 | THREAD_POOL.depopulate(); |
| 1145 | } |
| 1146 | |
| 1147 | /// Tests that multiple tasks in a scope run to completion. |
| 1148 | #[test] |
| 1149 | fn scope_two() { |
| 1150 | static THREAD_POOL: ThreadPool = ThreadPool::new(); |
| 1151 | THREAD_POOL.resize_to_available(); |
| 1152 | |
| 1153 | let counter = &AtomicUsize::new(0); |
nothing calls this directly
no test coverage detected