| 205 | } |
| 206 | |
| 207 | bool ReferenceTable::WriteAccess::releaseRef(SequenceID id) const { |
| 208 | auto& entry = _table->getEntry(id); |
| 209 | entry.retainCount--; |
| 210 | |
| 211 | if (entry.retainCount > 0) { |
| 212 | return true; |
| 213 | } |
| 214 | |
| 215 | entry.id = Valdi::SequenceID(); |
| 216 | entry.tag = nullptr; |
| 217 | _table->_sequence.releaseId(id); |
| 218 | return false; |
| 219 | } |
| 220 | |
| 221 | bool ReferenceTable::WriteAccess::contains(SequenceID id) const { |
| 222 | return _table->contains(id); |
nothing calls this directly
no test coverage detected