コード例 #1
0
 private void ProcessInfoThread()
 {
     while (Thread.CurrentThread.ThreadState == ThreadState.Running)
     {
         Thread.Sleep(updateProcessInfoEveryMiliseconds);
         processInfoManager.Tick();
     }
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: jaapjolman/getpidinfo
 void ProcessInfoThread()
 {
     processInfoManager = new ProcessInfoManager(numberOfProcessInfoSamplesToAverage, secondsToKeepWatchingProcessWithNoRequests);
     while (Thread.CurrentThread.ThreadState == ThreadState.Running)
     {
         Thread.Sleep(updateProcessInfoEveryMiliseconds);
         processInfoManager.Tick();
     }
 }