Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
azure-cloud-mining-script
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
azure-cloud-mining-script
Commits
9e7efd40
There was an error fetching the commit references. Please try again later.
Commit
9e7efd40
authored
7 years ago
by
psychocrypt
Browse files
Options
Downloads
Patches
Plain Diff
fix bugs
- add excecutor to the singleton export list
parent
b1e92092
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
Environment.hpp
+4
-0
4 additions, 0 deletions
Environment.hpp
backend/BackendConnector.cpp
+1
-0
1 addition, 0 deletions
backend/BackendConnector.cpp
cli/cli-miner.cpp
+1
-1
1 addition, 1 deletion
cli/cli-miner.cpp
executor.cpp
+0
-2
0 additions, 2 deletions
executor.cpp
executor.h
+5
-3
5 additions, 3 deletions
executor.h
with
11 additions
and
6 deletions
Environment.hpp
+
4
−
0
View file @
9e7efd40
...
...
@@ -2,6 +2,7 @@
class
printer
;
class
jconf
;
class
executor
;
namespace
xmrstak
{
...
...
@@ -22,6 +23,7 @@ struct Environment
this
->
pPrinter
=
env
.
pPrinter
;
this
->
pGlobalStates
=
env
.
pGlobalStates
;
this
->
pJconfConfig
=
env
.
pJconfConfig
;
this
->
pExecutor
=
env
.
pExecutor
;
return
*
this
;
}
...
...
@@ -37,6 +39,8 @@ struct Environment
jconf
*
pJconfConfig
;
executor
*
pExecutor
;
};
}
// namepsace xmrstak
This diff is collapsed.
Click to expand it.
backend/BackendConnector.cpp
+
1
−
0
View file @
9e7efd40
...
...
@@ -44,6 +44,7 @@
#include
"Plugin.hpp"
#include
"../Environment.hpp"
#include
"../console.h"
namespace
xmrstak
{
...
...
This diff is collapsed.
Click to expand it.
cli/cli-miner.cpp
+
1
−
1
View file @
9e7efd40
...
...
@@ -122,7 +122,7 @@ int main(int argc, char *argv[])
#endif
printer
::
inst
()
->
print_str
(
"-------------------------------------------------------------------
\n
"
);
printer
::
inst
()
->
print_str
(
XMR_STAK_NAME
" "
XMR_STAK_VERSION
" mining software
, CPU Version
.
\n
"
);
printer
::
inst
()
->
print_str
(
XMR_STAK_NAME
" "
XMR_STAK_VERSION
" mining software.
\n
"
);
printer
::
inst
()
->
print_str
(
"Based on CPU mining code by wolf9466 (heavily optimized by fireice_uk).
\n
"
);
#ifndef CONF_NO_CUDA
printer
::
inst
()
->
print_str
(
"NVIDIA mining code was written by KlausT and psychocrypt.
\n
"
);
...
...
This diff is collapsed.
Click to expand it.
executor.cpp
+
0
−
2
View file @
9e7efd40
...
...
@@ -44,8 +44,6 @@
#define strncasecmp _strnicmp
#endif // _WIN32
executor
*
executor
::
oInst
=
NULL
;
executor
::
executor
()
{
}
...
...
This diff is collapsed.
Click to expand it.
executor.h
+
5
−
3
View file @
9e7efd40
...
...
@@ -7,6 +7,7 @@
#include
<future>
#include
"telemetry.h"
#include
"backend/IBackend.hpp"
#include
"Environment.hpp"
class
jpsock
;
...
...
@@ -25,8 +26,10 @@ class executor
public:
static
executor
*
inst
()
{
if
(
oInst
==
nullptr
)
oInst
=
new
executor
;
return
oInst
;
auto
&
env
=
xmrstak
::
Environment
::
inst
();
if
(
env
.
pExecutor
==
nullptr
)
env
.
pExecutor
=
new
executor
;
return
env
.
pExecutor
;
};
void
ex_start
(
bool
daemon
)
{
daemon
?
ex_main
()
:
std
::
thread
(
&
executor
::
ex_main
,
this
).
detach
();
}
...
...
@@ -73,7 +76,6 @@ private:
bool
is_dev_time
;
executor
();
static
executor
*
oInst
;
void
ex_main
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment