Add extra information to threads API.
This commit is contained in:
parent
c0a72edf9a
commit
d04a1fcb8f
4 changed files with 30 additions and 7 deletions
|
@ -32,6 +32,7 @@
|
|||
|
||||
#include "net/Job.h"
|
||||
#include "net/JobResult.h"
|
||||
#include "rapidjson/fwd.h"
|
||||
|
||||
|
||||
class Handle;
|
||||
|
@ -66,6 +67,10 @@ public:
|
|||
static inline void pause() { m_active = false; m_paused = 1; m_sequence++; }
|
||||
static inline void setListener(IJobResultListener *listener) { m_listener = listener; }
|
||||
|
||||
# ifndef XMRIG_NO_API
|
||||
static void threadsSummary(rapidjson::Document &doc);
|
||||
# endif
|
||||
|
||||
private:
|
||||
static void onReady(void *arg);
|
||||
static void onResult(uv_async_t *handle);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue