(&mut self)
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected