MCPcopy Create free account
hub / github.com/apache/cloudberry / get_timeout_indicator

Function get_timeout_indicator

src/backend/utils/misc/timeout.c:741–751  ·  view source on GitHub ↗

* Return the timeout's I've-been-fired indicator * * If reset_indicator is true, reset the indicator when returning true. * To avoid missing timeouts due to race conditions, we are careful not to * reset the indicator when returning false. */

Source from the content-addressed store, hash-verified

739 * reset the indicator when returning false.
740 */
741bool
742get_timeout_indicator(TimeoutId id, bool reset_indicator)
743{
744 if (all_timeouts[id].indicator)
745 {
746 if (reset_indicator)
747 all_timeouts[id].indicator = false;
748 return true;
749 }
750 return false;
751}
752
753/*
754 * Return the time when the timeout was most recently activated

Callers 1

ProcessInterruptsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected