LCOV - code coverage report
Current view: top level - src - shutdown.cpp (source / functions) Hit Total Coverage
Test: total_coverage.info Lines: 5 8 62.5 %
Date: 2025-02-23 09:33:43 Functions: 2 3 66.7 %

          Line data    Source code
       1             : // Copyright (c) 2009-2010 Satoshi Nakamoto
       2             : // Copyright (c) 2009-2018 The Bitcoin Core developers
       3             : // Copyright (c) 2021 The PIVX Core developers
       4             : // Distributed under the MIT software license, see the accompanying
       5             : // file COPYING or http://www.opensource.org/licenses/mit-license.php.
       6             : 
       7             : #include "shutdown.h"
       8             : 
       9             : #include <atomic>
      10             : 
      11             : 
      12             : static std::atomic<bool> fRequestShutdown{false};
      13             : 
      14         733 : void StartShutdown()
      15             : {
      16         733 :     fRequestShutdown = true;
      17         733 : }
      18           0 : void AbortShutdown()
      19             : {
      20           0 :     fRequestShutdown = false;
      21           0 : }
      22      727823 : bool ShutdownRequested()
      23             : {
      24      727823 :     return fRequestShutdown;
      25             : }

Generated by: LCOV version 1.14