MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / post_wakeup

Method post_wakeup

src/lock/lock.cpp:2826–2845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2824
2825
2826void LockManager::post_wakeup(own* owner)
2827{
2828/**************************************
2829 *
2830 * p o s t _ w a k e u p
2831 *
2832 **************************************
2833 *
2834 * Functional description
2835 * Wakeup whoever is waiting on a lock.
2836 *
2837 **************************************/
2838
2839 if (owner->own_waits)
2840 {
2841 ++(m_sharedMemory->getHeader()->lhb_wakeups);
2842 owner->own_flags |= OWN_wakeup;
2843 (void) m_sharedMemory->eventPost(&owner->own_wakeup);
2844 }
2845}
2846
2847
2848bool LockManager::probe_processes()

Callers

nothing calls this directly

Calls 2

eventPostMethod · 0.80
getHeaderMethod · 0.45

Tested by

no test coverage detected