| 146 | class AutoUnlock { |
| 147 | public: |
| 148 | explicit AutoUnlock(Lock& lock) : lock_(lock) { |
| 149 | // We require our caller to have the lock. |
| 150 | lock_.AssertAcquired(); |
| 151 | lock_.Release(); |
| 152 | } |
| 153 | |
| 154 | ~AutoUnlock() { lock_.Acquire(); } |
| 155 |
nothing calls this directly
no test coverage detected