GhostRidere: set correct priority for helper threads

Fixes #2825
This commit is contained in:
SChernykh 2021-12-20 12:05:17 +01:00
parent 4bf65c8669
commit 93081eb1f6
3 changed files with 11 additions and 7 deletions

View file

@ -39,7 +39,7 @@ namespace ghostrider
struct HelperThread;
void benchmark();
HelperThread* create_helper_thread(int64_t cpu_index, const std::vector<int64_t>& affinities);
HelperThread* create_helper_thread(int64_t cpu_index, int priority, const std::vector<int64_t>& affinities);
void destroy_helper_thread(HelperThread* t);
void hash_octa(const uint8_t* data, size_t size, uint8_t* output, cryptonight_ctx** ctx, HelperThread* helper, bool verbose = true);