MCPcopy Create free account
hub / github.com/cztomczak/cefpython / AutoUnlock

Method AutoUnlock

src/include/base/cef_lock.h:148–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146class 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

Callers

nothing calls this directly

Calls 2

AssertAcquiredMethod · 0.80
ReleaseMethod · 0.45

Tested by

no test coverage detected