OclLib improvements.
This commit is contained in:
parent
bd1ffa56dc
commit
5a91552060
7 changed files with 204 additions and 66 deletions
|
@ -34,6 +34,7 @@
|
|||
#include "base/io/log/Log.h"
|
||||
#include "base/kernel/Platform.h"
|
||||
#include "base/net/stratum/Job.h"
|
||||
#include "base/tools/Object.h"
|
||||
#include "base/tools/Timer.h"
|
||||
#include "core/config/Config.h"
|
||||
#include "core/Controller.h"
|
||||
|
@ -69,6 +70,8 @@ static std::mutex mutex;
|
|||
class MinerPrivate
|
||||
{
|
||||
public:
|
||||
XMRIG_DISABLE_COPY_MOVE_DEFAULT(MinerPrivate)
|
||||
|
||||
inline MinerPrivate(Controller *controller) : controller(controller)
|
||||
{
|
||||
# ifdef XMRIG_ALGO_RANDOMX
|
||||
|
@ -488,6 +491,11 @@ void xmrig::Miner::onRequest(IApiRequest &request)
|
|||
|
||||
setEnabled(true);
|
||||
}
|
||||
else if (request.rpcMethod() == "stop") {
|
||||
request.accept();
|
||||
|
||||
stop();
|
||||
}
|
||||
}
|
||||
|
||||
for (IBackend *backend : d_ptr->backends) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue