MCPcopy Create free account
hub / github.com/cisco/openh264 / AutoLock

Method AutoLock

module/RefCounted.h:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35class AutoLock {
36public:
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();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected