aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Startup.Common/Diagnostics/ProcessManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Server.Startup.Common/Diagnostics/ProcessManager.cs')
-rw-r--r--MediaBrowser.Server.Startup.Common/Diagnostics/ProcessManager.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Startup.Common/Diagnostics/ProcessManager.cs b/MediaBrowser.Server.Startup.Common/Diagnostics/ProcessManager.cs
new file mode 100644
index 000000000..d01756d0e
--- /dev/null
+++ b/MediaBrowser.Server.Startup.Common/Diagnostics/ProcessManager.cs
@@ -0,0 +1,23 @@
+using MediaBrowser.Controller.Diagnostics;
+using System.Diagnostics;
+
+namespace MediaBrowser.Server.Mono.Diagnostics
+{
+ public class ProcessManager : IProcessManager
+ {
+ public void SuspendProcess(Process process)
+ {
+ process.PriorityClass = ProcessPriorityClass.Idle;
+ }
+
+ public void ResumeProcess(Process process)
+ {
+ process.PriorityClass = ProcessPriorityClass.Normal;
+ }
+
+ public bool SupportsSuspension
+ {
+ get { return true; }
+ }
+ }
+}