MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / decrease_borrow_count

Method decrease_borrow_count

src/sharedref.rs:261–264  ·  view source on GitHub ↗
(&self, _py: Python)

Source from the content-addressed store, hash-verified

259 }
260
261 fn decrease_borrow_count(&self, _py: Python) {
262 let prev_count = self.borrow_count.fetch_sub(1, Ordering::Relaxed);
263 assert!(prev_count > 0);
264 }
265
266 fn current_generation(&self, _py: Python) -> usize {
267 self.generation.load(Ordering::Relaxed)

Callers 1

dropMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected