From de65d3c0295894f8eafc4c7582dfe180dc58c81e Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Mon, 20 Jan 2025 19:25:18 -0500 Subject: add upstream 14.0, depends on wx 3.3.0 --- zen/process_priority.h | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'zen/process_priority.h') diff --git a/zen/process_priority.h b/zen/process_priority.h index cfadfff1..216c1153 100644 --- a/zen/process_priority.h +++ b/zen/process_priority.h @@ -13,23 +13,20 @@ namespace zen { -//signal a "busy" state to the operating system -class PreventStandby +enum class ProcessPriority { -public: - PreventStandby(); //throw FileError - ~PreventStandby(); -private: - struct Impl; - const std::unique_ptr pimpl_; + normal, + background, //lower CPU and file I/O priorities }; -//lower CPU and file I/O priorities -class ScheduleForBackgroundProcessing +//- prevent operating system going into sleep state +//- set process I/O priorities +class SetProcessPriority { public: - ScheduleForBackgroundProcessing(); //throw FileError - ~ScheduleForBackgroundProcessing(); + explicit SetProcessPriority(ProcessPriority prio); //throw FileError + ~SetProcessPriority(); + private: struct Impl; const std::unique_ptr pimpl_; -- cgit