| 35 | class AutoLock { |
| 36 | public: |
| 37 | explicit AutoLock(GMPMutex* aMutex) |
| 38 | : mMutex(aMutex) |
| 39 | { |
| 40 | assert(aMutex); |
| 41 | if (mMutex) { |
| 42 | mMutex->Acquire(); |
| 43 | } |
| 44 | } |
| 45 | ~AutoLock() { |
| 46 | if (mMutex) { |
| 47 | mMutex->Release(); |
nothing calls this directly
no outgoing calls
no test coverage detected