MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / ~RWLock

Method ~RWLock

src/common/classes/rwlock.h:82–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80 RWLock() { init(); }
81 explicit RWLock(Firebird::MemoryPool&) { init(); }
82 ~RWLock()
83 {
84 if (readers_semaphore && !CloseHandle(readers_semaphore))
85 system_call_failed::raise("CloseHandle");
86 if (writers_event && !CloseHandle(writers_event))
87 system_call_failed::raise("CloseHandle");
88 }
89 // Returns negative value if writer is active.
90 // Otherwise returns a number of readers
91 LONG getState() const

Callers

nothing calls this directly

Calls 2

raiseFunction · 0.85
valueMethod · 0.45

Tested by

no test coverage detected