MCPcopy Create free account
hub / github.com/ElementsProject/elements / reverse_lock

Method reverse_lock

src/sync.h:200–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198 class reverse_lock {
199 public:
200 explicit reverse_lock(UniqueLock& _lock, const char* _guardname, const char* _file, int _line) : lock(_lock), file(_file), line(_line) {
201 CheckLastCritical((void*)lock.mutex(), lockname, _guardname, _file, _line);
202 lock.unlock();
203 LeaveCritical();
204 lock.swap(templock);
205 }
206
207 ~reverse_lock() {
208 templock.swap(lock);

Callers

nothing calls this directly

Calls 4

unlockMethod · 0.80
CheckLastCriticalFunction · 0.70
LeaveCriticalFunction · 0.70
swapMethod · 0.45

Tested by

no test coverage detected