mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-08 04:18:06 +02:00
23 lines
551 B
C#
23 lines
551 B
C#
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; }
|
|
}
|
|
}
|
|
}
|