summaryrefslogtreecommitdiff
path: root/zen/process_priority.h
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2025-01-20 19:25:18 -0500
committerB. Stack <bgstack15@gmail.com>2025-01-20 19:25:18 -0500
commitde65d3c0295894f8eafc4c7582dfe180dc58c81e (patch)
tree3ba8ec770b81468ca4ad83d985b991c5f669de22 /zen/process_priority.h
parentadd upstream 13.9 (diff)
downloadFreeFileSync-de65d3c0295894f8eafc4c7582dfe180dc58c81e.tar.gz
FreeFileSync-de65d3c0295894f8eafc4c7582dfe180dc58c81e.tar.bz2
FreeFileSync-de65d3c0295894f8eafc4c7582dfe180dc58c81e.zip
add upstream 14.0, depends on wx 3.3.0HEAD14.0master
Diffstat (limited to 'zen/process_priority.h')
-rw-r--r--zen/process_priority.h21
1 files changed, 9 insertions, 12 deletions
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<Impl> 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<Impl> pimpl_;
bgstack15