1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-08 08:23:34 -05:00

Added OclContext class.

This commit is contained in:
XMRig
2019-08-24 14:58:50 +07:00
parent 2a07bc4ef3
commit cf123b7d88
9 changed files with 161 additions and 16 deletions

View File

@@ -33,6 +33,9 @@
#include "crypto/common/Nonce.h"
typedef struct _cl_context *cl_context;
namespace xmrig {
@@ -52,6 +55,7 @@ public:
inline bool operator!=(const OclLaunchData &other) const { return !isEqual(other); }
inline bool operator==(const OclLaunchData &other) const { return isEqual(other); }
cl_context ctx = nullptr;
const Algorithm algorithm;
const bool cache;
const Miner *miner;