MCPcopy Create free account
hub / github.com/NthTensor/Forte / scope_panic_propagate_from_spawn

Function scope_panic_propagate_from_spawn

src/scope.rs:1461–1469  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1459 for _ in 0..NUM_JOBS {
1460 scope.spawn(|_: &Worker| {
1461 THREAD_POOL.join(
1462 |_| a.fetch_add(1, Ordering::Relaxed),
1463 |_| b.fetch_add(1, Ordering::Relaxed),
1464 );
1465 });
1466 }
1467 });
1468 });
1469
1470 assert_eq!(a.load(Ordering::Relaxed), NUM_JOBS);
1471 assert_eq!(b.load(Ordering::Relaxed), NUM_JOBS);
1472

Callers

nothing calls this directly

Calls 4

resize_to_availableMethod · 0.80
scopeMethod · 0.80
depopulateMethod · 0.80
spawnMethod · 0.45

Tested by

no test coverage detected