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

Method semaphore

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

Source from the content-addressed store, hash-verified

1062 static WORKER_PTR: Cell<*const Worker> = const { Cell::new(ptr::null()) };
1063}
1064
1065const REJECTION_MASK: u32 = (1u32 << 26) - 1;
1066
1067impl Membership {
1068 /// Returns this worker's index within its thread pool.
1069 ///

Callers 2

waitMethod · 0.80
new_latchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected