Use std::thread and std:mutex instead of uv_thread_t and uv_mutex_t.

This commit is contained in:
XMRig 2019-07-30 21:25:27 +07:00
parent 1c7ca3a0a7
commit 962f0cdd8e
4 changed files with 47 additions and 50 deletions

View file

@ -59,6 +59,10 @@ public:
inline MinerPrivate(Controller *controller) : controller(controller)
{
uv_rwlock_init(&rwlock);
# ifdef XMRIG_ALGO_RANDOMX
Rx::init();
# endif
}
@ -71,6 +75,10 @@ public:
for (IBackend *backend : backends) {
delete backend;
}
# ifdef XMRIG_ALGO_RANDOMX
Rx::destroy();
# endif
}