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 // This RMW tries to atomically claim the selected seats all at
1049 // once. Doing this in a single step keeps the batch claim atomic
1050 // with respect to other concurrent `try_enroll_many` calls, and can
1051 // prevent livelocks.
1052 //
1053 // We use `Acquire` ordering on success to synchronize with the
1054 // `Release` RMW any previous owner would make during resignation.
1055 // If the CAS fails we lost a race and retry; since we claimed

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