aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/globalstate.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/toolsrc/include/vcpkg/globalstate.h b/toolsrc/include/vcpkg/globalstate.h
index 2a76c8741..ae66ca355 100644
--- a/toolsrc/include/vcpkg/globalstate.h
+++ b/toolsrc/include/vcpkg/globalstate.h
@@ -22,6 +22,8 @@ namespace vcpkg
struct CtrlCStateMachine
{
+ CtrlCStateMachine();
+
void transition_to_spawn_process() noexcept;
void transition_from_spawn_process() noexcept;
void transition_handle_ctrl_c() noexcept;
@@ -34,7 +36,7 @@ namespace vcpkg
exit_requested,
};
- std::atomic<CtrlCState> m_state = CtrlCState::normal;
+ std::atomic<CtrlCState> m_state;
};
static CtrlCStateMachine g_ctrl_c_state;