(&self, n: usize)
| 110 | |
| 111 | #[inline] |
| 112 | pub fn inc_by(&self, n: usize) { |
| 113 | debug_assert!(n <= STRONG); |
| 114 | let val = State::from_raw(self.state.fetch_add(n * COUNT, Ordering::Relaxed)); |
| 115 | if val.destructed() || (val.strong() as usize) > STRONG - n { |
| 116 | refcount_overflow(); |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | /// Returns true if successful |
| 121 | #[inline] |
no test coverage detected