2015-02-28 18:47:05 +00:00
|
|
|
|
using MediaBrowser.Controller.Diagnostics;
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Server.Mono.Diagnostics
|
|
|
|
|
{
|
|
|
|
|
public class ProcessManager : IProcessManager
|
|
|
|
|
{
|
|
|
|
|
public void SuspendProcess(Process process)
|
|
|
|
|
{
|
2015-03-02 18:48:21 +00:00
|
|
|
|
process.PriorityClass = ProcessPriorityClass.Idle;
|
2015-02-28 18:47:05 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void ResumeProcess(Process process)
|
|
|
|
|
{
|
2015-03-02 18:48:21 +00:00
|
|
|
|
process.PriorityClass = ProcessPriorityClass.Normal;
|
2015-02-28 18:47:05 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool SupportsSuspension
|
|
|
|
|
{
|
2015-03-02 18:48:21 +00:00
|
|
|
|
get { return true; }
|
2015-02-28 18:47:05 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|