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

Method sharing_queue

src/thread_pool.rs:1050–1052  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1048 let resignations = self.resignations.fetch_sub(1, Ordering::Acquire);
1049
1050 // If this was the last active freeze, wake up any threads that want to
1051 // resign.
1052 if resignations == 1 {
1053 let wants_to_resign = self.wants_to_resign.load(Ordering::Relaxed);
1054 for member_index in wants_to_resign.iter_bits() {
1055 self.get_member_data().semaphores[member_index].signal();

Callers 3

promote_coldMethod · 0.80
find_local_workMethod · 0.80
steal_from_siblingsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected