aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include/vcpkg_GlobalState.h
blob: 6522a25bfe3b840732c1aed805c5fb3800f10bc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <atomic>

#include "vcpkg_Chrono.h"
#include "vcpkg_Util.h"

namespace vcpkg
{
    struct GlobalState
    {
        static Util::LockGuarded<ElapsedTime> timer;
        static std::atomic<bool> debugging;
        static std::atomic<bool> feature_packages;

        static std::atomic<int> g_init_console_cp;
        static std::atomic<int> g_init_console_output_cp;
    };
}