![]() |
Fabcoin Core
0.16.2
P2P Digital Currency
|
#include <EthashCPUMiner.h>
Public Member Functions | |
| EthashCPUMiner (GenericMiner< EthashProofOfWork >::ConstructionInfo const &_ci) | |
| ~EthashCPUMiner () | |
Public Member Functions inherited from dev::eth::GenericMiner< EthashProofOfWork > | |
| GenericMiner (ConstructionInfo const &_ci) | |
| virtual | ~GenericMiner () |
| void | setWork (WorkPackage const &_work=WorkPackage()) |
| uint64_t | hashCount () const |
| void | resetHashCount () |
| unsigned | index () const |
Static Public Member Functions | |
| static unsigned | instances () |
| static std::string | platformInfo () |
| static void | listDevices () |
| static bool | configureGPU (unsigned, unsigned, unsigned, unsigned, unsigned, bool, unsigned, uint64_t) |
| static void | setNumInstances (unsigned _instances) |
Protected Member Functions | |
| void | kickOff () override |
| Begin working on a given work package, discarding any previous work. More... | |
| void | pause () override |
| No work left to be done. More... | |
Protected Member Functions inherited from dev::eth::GenericMiner< EthashProofOfWork > | |
| bool | submitProof (Solution const &_s) |
| Notes that the Miner found a solution. More... | |
| WorkPackage const & | work () const |
| void | accumulateHashes (unsigned _n) |
Private Member Functions | |
| void | workLoop () override |
| Overrides doWork(); should call shouldStop() often and exit when true. More... | |
Private Member Functions inherited from dev::Worker | |
| Worker (std::string const &_name="anon", unsigned _idleWaitMs=30) | |
| Worker (Worker &&_m) | |
| Move-constructor. More... | |
| Worker & | operator= (Worker &&_m) |
| Move-assignment. More... | |
| virtual | ~Worker () |
| void | setName (std::string _n) |
| Allows changing worker name if work is stopped. More... | |
| void | startWorking () |
| Starts worker thread; causes startedWorking() to be called. More... | |
| void | stopWorking () |
| Stop worker thread; causes call to stopWorking(). More... | |
| bool | isWorking () const |
| Returns if worker thread is present. More... | |
| virtual void | startedWorking () |
| Called after thread is started from startWorking(). More... | |
| virtual void | doWork () |
| Called continuously following sleep for m_idleWaitMs. More... | |
| bool | shouldStop () const |
| virtual void | doneWorking () |
| Called when is to be stopped, just prior to thread being joined. More... | |
Static Private Attributes | |
| static unsigned | s_numInstances = 0 |
Additional Inherited Members | |
Public Types inherited from dev::eth::GenericMiner< EthashProofOfWork > | |
| using | WorkPackage = typename EthashProofOfWork::WorkPackage |
| using | Solution = typename EthashProofOfWork::Solution |
| using | FarmFace = GenericFarmFace< EthashProofOfWork > |
| using | ConstructionInfo = std::pair< FarmFace *, unsigned > |
Definition at line 35 of file EthashCPUMiner.h.
| EthashCPUMiner::EthashCPUMiner | ( | GenericMiner< EthashProofOfWork >::ConstructionInfo const & | _ci | ) |
Definition at line 57 of file EthashCPUMiner.cpp.
| EthashCPUMiner::~EthashCPUMiner | ( | ) |
Definition at line 62 of file EthashCPUMiner.cpp.
|
inlinestatic |
Definition at line 44 of file EthashCPUMiner.h.
|
inlinestatic |
|
overrideprotectedvirtual |
Begin working on a given work package, discarding any previous work.
| _work | The package for which to find a solution. |
Implements dev::eth::GenericMiner< EthashProofOfWork >.
Definition at line 66 of file EthashCPUMiner.cpp.
|
inlinestatic |
Definition at line 43 of file EthashCPUMiner.h.
|
overrideprotectedvirtual |
No work left to be done.
Pause until told to kickOff().
Implements dev::eth::GenericMiner< EthashProofOfWork >.
Definition at line 72 of file EthashCPUMiner.cpp.
|
static |
Definition at line 108 of file EthashCPUMiner.cpp.
|
inlinestatic |
|
overrideprivatevirtual |
Overrides doWork(); should call shouldStop() often and exit when true.
Reimplemented from dev::Worker.
Definition at line 77 of file EthashCPUMiner.cpp.
|
staticprivate |
Definition at line 53 of file EthashCPUMiner.h.
1.8.11