/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
// Not making progress if (nUnchanged >= aTimingValues.mnDisableEntries)
{ if (!bFired)
{
gbWatchdogFiring = true;
SAL_WARN("vcl.watchdog", "Watchdog triggered: hard disable " << Zone::name()); #ifdef DBG_UTIL
std::abort(); #else
Zone::hardDisable();
gbWatchdogFiring = false; #endif
}
bFired = true;
// we can hang using VCL in the abort handling -> be impatient if (bAbortFired)
{
SAL_WARN("vcl.watchdog", "Watchdog gave up: hard exiting " << Zone::name());
_Exit(1);
}
}
// Not making even more progress if (nUnchanged >= aTimingValues.mnAbortAfter)
{ if (!bAbortFired)
{
SAL_WARN("vcl.watchdog", "Watchdog gave up: aborting " << Zone::name());
gbWatchdogFiring = true;
std::abort();
} // coverity[dead_error_line] - we might have caught SIGABRT and failed to exit yet
bAbortFired = true;
}
} else
{
nUnchanged = 0;
}
}
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.