#pragma once #include "misc/atomic_box.h" #include enum EShutdownState { SS_RUNNING, SS_SHUTDOWN_COMMAND, SS_SHUTDOWN_COMPLETE, }; struct TAtomicShutdownState { TAtomicBox State; TSystemEvent ShutdownComplete; void ShutdownCommand(); void CompleteShutdown(); bool IsRunning(); ~TAtomicShutdownState(); };