mirror of
https://github.com/wownero/RandomWOW.git
synced 2026-10-17 15:31:46 +02:00
Support for multiple threads
This commit is contained in:
+2
-20
@@ -26,30 +26,12 @@ namespace RandomX {
|
||||
class VirtualMachine {
|
||||
public:
|
||||
VirtualMachine(bool softAes);
|
||||
virtual ~VirtualMachine() {}
|
||||
virtual void initializeDataset(const void* seed, bool light = false);
|
||||
virtual ~VirtualMachine();
|
||||
virtual void setDataset(dataset_t ds, bool light = false);
|
||||
void initializeScratchpad(uint32_t index);
|
||||
virtual void initializeProgram(const void* seed) = 0;
|
||||
virtual void execute() = 0;
|
||||
void getResult(void*);
|
||||
const RegisterFile& getRegisterFile() const {
|
||||
return reg;
|
||||
}
|
||||
const convertible_t* getScratchpad() const {
|
||||
return scratchpad;
|
||||
}
|
||||
const void* getCache() {
|
||||
if (lightClient) {
|
||||
return mem.lcm->cache;
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
const __m128i* getKeys() {
|
||||
if (lightClient) {
|
||||
return mem.lcm->keys;
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
protected:
|
||||
bool softAes, lightClient;
|
||||
RegisterFile reg;
|
||||
|
||||
Reference in New Issue
Block a user