Class OclInterleave renamed to OclSharedData and added class OclSharedState.

This commit is contained in:
XMRig 2019-09-30 05:18:53 +07:00
parent c908ef2489
commit f4943b77f3
10 changed files with 154 additions and 34 deletions

View file

@ -35,6 +35,7 @@
#include "backend/opencl/OclConfig.h"
#include "backend/opencl/OclLaunchData.h"
#include "backend/opencl/OclWorker.h"
#include "backend/opencl/runners/tools/OclSharedState.h"
#include "backend/opencl/wrappers/OclContext.h"
#include "backend/opencl/wrappers/OclLib.h"
#include "base/io/log/Log.h"
@ -194,6 +195,8 @@ public:
i++;
}
OclSharedState::start(threads);
status.start(threads.size());
workers.start(threads);
}
@ -371,6 +374,8 @@ void xmrig::OclBackend::stop()
d_ptr->workers.stop();
d_ptr->threads.clear();
OclSharedState::release();
LOG_INFO("%s" YELLOW(" stopped") BLACK_BOLD(" (%" PRIu64 " ms)"), tag, Chrono::steadyMSecs() - ts);
}