MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / inc

Function inc

crates/data-structures/src/object_pool.rs:161–163  ·  view source on GitHub ↗
(atomic: &AtomicUsize)

Source from the content-addressed store, hash-verified

159
160#[inline]
161fn inc(atomic: &AtomicUsize) {
162 atomic.fetch_add(1, Ordering::Relaxed);
163}
164
165impl<T: PooledObject> Inner<T> {
166 /// Creates a new pool capable of holding `cap` objects.

Callers 2

putMethod · 0.70
takeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected