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

Method drop

src/thread_pool.rs:1077–1085  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

1075 }
1076 }
1077 }
1078
1079 /// Blocks workers from resigning from the pool.
1080 ///
1081 /// Each call to this function must be paired with exactly one following
1082 /// call to `unfreeze_membership`.
1083 ///
1084 /// Returns a bitset indicating which memberships are claimed. These members
1085 /// are guatenteed to remain in the pool at least until the corresponding
1086 /// call to `unfreeze_membership`.
1087 pub fn freeze_membership(&'static self) -> u32 {
1088 // Increment the freeze counter, which will cause new resignation

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected