mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-11 17:32:47 -05:00
Use std::thread and std:mutex instead of uv_thread_t and uv_mutex_t.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user