| 170 | { } |
| 171 | |
| 172 | void lock(Mutex* aLock, RefCounted* aRef) |
| 173 | { |
| 174 | fb_assert(aLock); |
| 175 | fb_assert(!m_lock); |
| 176 | m_lock = aLock; |
| 177 | fb_assert(aRef); |
| 178 | fb_assert(!m_ref); |
| 179 | m_ref = aRef; |
| 180 | |
| 181 | m_lock->enter(m_from); |
| 182 | m_ref->assertNonZero(); |
| 183 | m_ref->addRef(); |
| 184 | } |
| 185 | |
| 186 | ~LateRefGuard() |
| 187 | { |
nothing calls this directly
no test coverage detected