"GET /1/threads" replaced to "GET /2/backends".

This commit is contained in:
XMRig 2019-07-19 04:22:21 +07:00
parent fa2c9df075
commit 1d78e7d60d
10 changed files with 159 additions and 58 deletions

View file

@ -74,6 +74,17 @@ static const char *tag = BLUE_BG(" rx ");
} // namespace xmrig
xmrig::RxDataset *xmrig::Rx::dataset()
{
d_ptr->lock();
RxDataset *dataset = d_ptr->dataset;
d_ptr->unlock();
return dataset;
}
xmrig::RxDataset *xmrig::Rx::dataset(const uint8_t *seed, const Algorithm &algorithm, bool hugePages)
{
d_ptr->lock();

View file

@ -42,6 +42,7 @@ class RxDataset;
class Rx
{
public:
static RxDataset *dataset();
static RxDataset *dataset(const uint8_t *seed, const Algorithm &algorithm, bool hugePages = true);
static void stop();
};