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>
|
2019-04-08 23:26:18 -07:00
|
|
|
#include <string>
|
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;
|
|
|
|
|
2018-02-26 18:38:25 -08:00
|
|
|
static std::atomic<bool> g_binary_caching;
|
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;
|
2018-10-16 00:35:47 -07:00
|
|
|
static std::atomic<bool> g_init_console_initialized;
|
2017-08-23 16:17:53 -07:00
|
|
|
};
|
2017-11-29 23:45:47 -08:00
|
|
|
}
|