mirror of
https://github.com/xmrig/xmrig.git
synced 2025-02-02 11:16:37 +00:00
Async: remove unreachable code
This commit is contained in:
parent
87b4d97798
commit
da8b87b007
2 changed files with 0 additions and 27 deletions
|
@ -25,30 +25,6 @@
|
||||||
#include "base/tools/Object.h"
|
#include "base/tools/Object.h"
|
||||||
|
|
||||||
|
|
||||||
// since 2019.05.16, Version 1.29.0 (Stable)
|
|
||||||
#if (UV_VERSION_MAJOR >= 1) && (UV_VERSION_MINOR >= 29) && defined(__linux__)
|
|
||||||
#define XMRIG_UV_PERFORMANCE_BUG
|
|
||||||
namespace xmrig {
|
|
||||||
|
|
||||||
|
|
||||||
struct uv_async_t: uv_poll_t
|
|
||||||
{
|
|
||||||
typedef void (*uv_async_cb)(uv_async_t* handle);
|
|
||||||
~uv_async_t();
|
|
||||||
int m_fd = -1;
|
|
||||||
uv_async_cb m_cb = nullptr;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
using uv_async_cb = uv_async_t::uv_async_cb;
|
|
||||||
extern int uv_async_init(uv_loop_t *loop, uv_async_t *async, uv_async_cb cb);
|
|
||||||
extern int uv_async_send(uv_async_t *async);
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace xmrig
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
namespace xmrig {
|
namespace xmrig {
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -235,9 +235,6 @@ protected:
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static void onResult(uv_async_t *handle) { static_cast<JobResultsPrivate*>(handle->data)->submit(); }
|
|
||||||
|
|
||||||
|
|
||||||
# if defined(XMRIG_FEATURE_OPENCL) || defined(XMRIG_FEATURE_CUDA)
|
# if defined(XMRIG_FEATURE_OPENCL) || defined(XMRIG_FEATURE_CUDA)
|
||||||
inline void submit()
|
inline void submit()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue