-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathCommandGenerate.h
57 lines (46 loc) · 1.43 KB
/
CommandGenerate.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
GPU plot generator for Burst coin.
Author: Cryo
Bitcoin: 138gMBhCrNkbaiTCmUhP9HLU9xwn5QKZgD
Burst: BURST-YA29-QCEW-QXC3-BKXDL
Based on the code of the official miner and dcct's plotgen.
*/
#ifndef CRYO_GPU_PLOT_GENERATOR_COMMAND_GENERATE_H
#define CRYO_GPU_PLOT_GENERATOR_COMMAND_GENERATE_H
#include <string>
#include <vector>
#include <list>
#include <memory>
#include <mutex>
#include <condition_variable>
#include <exception>
#include "Command.h"
#include "GenerationDevice.h"
#include "GenerationContext.h"
#include "GenerationWork.h"
namespace cryo {
namespace gpuPlotGenerator {
class CommandGenerate : public cryo::gpuPlotGenerator::Command {
public:
CommandGenerate();
CommandGenerate(const CommandGenerate& p_command);
virtual ~CommandGenerate() throw ();
virtual void help() const;
virtual int execute(const std::vector<std::string>& p_args);
};
void computePlots(
std::exception_ptr& p_error,
std::mutex& p_mutex,
std::condition_variable& p_barrier,
std::list<std::shared_ptr<GenerationContext>>& p_generationContexts,
std::shared_ptr<GenerationDevice>& p_generationDevice
) throw (std::exception);
void writeNonces(
std::exception_ptr& p_error,
std::mutex& p_mutex,
std::condition_variable& p_barrier,
std::list<std::shared_ptr<GenerationContext>>& p_generationContexts,
std::shared_ptr<GenerationContext>& p_context
) throw (std::exception);
}}
#endif