2017-08-23 16:17:53 -07:00
|
|
|
#pragma once
|
|
|
|
|
2017-10-13 18:37:41 -07:00
|
|
|
#include <vcpkg/base/chrono.h>
|
|
|
|
#include <vcpkg/base/util.h>
|
2017-08-25 16:03:57 -07:00
|
|
|
|
2017-10-13 18:37:41 -07:00
|
|
|
#include <atomic>
|
2017-08-23 16:17:53 -07:00
|
|
|
|
|
|
|
namespace vcpkg
|
|
|
|
{
|
|
|
|
struct GlobalState
|
|
|
|
{
|
2017-11-29 23:45:47 -08:00
|
|
|
static Util::LockGuarded<Chrono::ElapsedTimer> timer;
|
2017-12-01 16:08:09 -08:00
|
|
|
static Util::LockGuarded<std::string> g_surveydate;
|
|
|
|
|
2017-08-25 16:03:57 -07:00
|
|
|
static std::atomic<bool> debugging;
|
|
|
|
static std::atomic<bool> feature_packages;
|
2017-08-25 16:55:14 -07:00
|
|
|
|
|
|
|
static std::atomic<int> g_init_console_cp;
|
|
|
|
static std::atomic<int> g_init_console_output_cp;
|
2017-08-23 16:17:53 -07:00
|
|
|
};
|
2017-11-29 23:45:47 -08:00
|
|
|
}
|