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

Method new_latch

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

Source from the content-addressed store, hash-verified

1347 }
1348
1349 /// Calls the provided closure on the thread's worker instance, if it has
1350 /// one. If this thread is not registered as a worker, the closure is passed
1351 /// `None`.
1352 #[inline(always)]
1353 pub fn with_current<F, R>(f: F) -> R
1354 where

Callers 4

block_onMethod · 0.80
joinMethod · 0.80
broadcastMethod · 0.80
with_scopeFunction · 0.80

Calls 1

semaphoreMethod · 0.80

Tested by

no test coverage detected