/ src / test / fuzz / util / check_globals.h
check_globals.h
 1  // Copyright (c) 2024-present The Bitcoin Core developers
 2  // Distributed under the MIT software license, see the accompanying
 3  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
 4  
 5  #ifndef BITCOIN_TEST_FUZZ_UTIL_CHECK_GLOBALS_H
 6  #define BITCOIN_TEST_FUZZ_UTIL_CHECK_GLOBALS_H
 7  
 8  #include <atomic>
 9  #include <memory>
10  #include <optional>
11  #include <string>
12  
13  extern std::atomic<bool> g_used_system_time;
14  
15  struct CheckGlobalsImpl;
16  struct CheckGlobals {
17      CheckGlobals();
18      ~CheckGlobals();
19      std::unique_ptr<CheckGlobalsImpl> m_impl;
20  };
21  
22  #endif // BITCOIN_TEST_FUZZ_UTIL_CHECK_GLOBALS_H