mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-08 08:23:34 -05:00
New Async wrapper.
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
#define XMRIG_ASYNC_H
|
||||
|
||||
|
||||
#include <uv.h>
|
||||
#include "base/tools/Object.h"
|
||||
|
||||
|
||||
// since 2019.05.16, Version 1.29.0 (Stable)
|
||||
@@ -49,4 +49,29 @@ extern int uv_async_send(uv_async_t *async);
|
||||
#endif
|
||||
|
||||
|
||||
namespace xmrig {
|
||||
|
||||
|
||||
class AsyncPrivate;
|
||||
class IAsyncListener;
|
||||
|
||||
|
||||
class Async
|
||||
{
|
||||
public:
|
||||
XMRIG_DISABLE_COPY_MOVE_DEFAULT(Async)
|
||||
|
||||
Async(IAsyncListener *listener);
|
||||
~Async();
|
||||
|
||||
void send();
|
||||
|
||||
private:
|
||||
AsyncPrivate *d_ptr;
|
||||
};
|
||||
|
||||
|
||||
} // namespace xmrig
|
||||
|
||||
|
||||
#endif /* XMRIG_ASYNC_H */
|
||||
|
||||
Reference in New Issue
Block a user