please include function beginCriticalAction. static bool criticalActionsInFlight() { ret nempty(criticalActions_inFlight); }