Add class JobResult.

This commit is contained in:
XMRig 2017-06-11 10:58:46 +03:00
parent 3ad11685cc
commit a0a8711dab
12 changed files with 112 additions and 22 deletions

View file

@ -35,17 +35,19 @@ class IWorker;
class Handle
{
public:
Handle(int threadId, int64_t affinity, bool nicehash);
Handle(int threadId, int threads, int64_t affinity, bool nicehash);
void start(void *(*callback) (void *));
inline bool nicehash() const { return m_nicehash; }
inline int threadId() const { return m_threadId; }
inline int threads() const { return m_threads; }
inline int64_t affinity() const { return m_affinity; }
inline void setWorker(IWorker *worker) { m_worker = worker; }
private:
bool m_nicehash;
int m_threadId;
int m_threads;
int64_t m_affinity;
IWorker *m_worker;
pthread_t m_thread;