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;