Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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]
161
fn inc(atomic: &AtomicUsize) {
162
atomic.fetch_add(1, Ordering::Relaxed);
163
}
164
165
impl<T: PooledObject> Inner<T> {
166
/// Creates a new pool capable of holding `cap` objects.
Callers
2
put
Method · 0.70
take
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected