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

Function get_timeout_active

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

* Return true if the timeout is active (enabled and not yet fired) * * This is, of course, subject to race conditions, as the timeout could fire * immediately after we look. */

Source from the content-addressed store, hash-verified

726 * immediately after we look.
727 */
728bool
729get_timeout_active(TimeoutId id)
730{
731 return all_timeouts[id].active;
732}
733
734/*
735 * Return the timeout's I've-been-fired indicator

Calls

no outgoing calls

Tested by

no test coverage detected