Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Lukas Weber
load_leveller
Commits
4cc16131
Commit
4cc16131
authored
Apr 25, 2019
by
Lukas Weber
Browse files
remove remaining mentions of abstract_mc
parent
f284db05
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/loadleveller.h
View file @
4cc16131
...
...
@@ -10,7 +10,7 @@ namespace loadl {
inline
int
merge_only
(
jobinfo
job
,
const
mc_factory
&
mccreator
,
int
,
char
**
)
{
for
(
size_t
task_id
=
0
;
task_id
<
job
.
task_names
.
size
();
task_id
++
)
{
std
::
vector
<
evalable
>
evalables
;
std
::
unique_ptr
<
abstract_
mc
>
sys
{
mccreator
(
job
.
jobfile_name
,
job
.
task_names
[
task_id
])};
std
::
unique_ptr
<
mc
>
sys
{
mccreator
(
job
.
jobfile_name
,
job
.
task_names
[
task_id
])};
sys
->
register_evalables
(
evalables
);
job
.
merge_task
(
task_id
,
evalables
);
...
...
@@ -43,7 +43,7 @@ inline int run_mc(int (*starter)(jobinfo job, const mc_factory &, int argc, char
// run this function from main() in your code.
template
<
class
mc_implementation
>
int
run
(
int
argc
,
char
**
argv
)
{
auto
mccreator
=
[
&
](
const
std
::
string
&
jobfile
,
const
std
::
string
&
taskname
)
->
abstract_
mc
*
{
auto
mccreator
=
[
&
](
const
std
::
string
&
jobfile
,
const
std
::
string
&
taskname
)
->
mc
*
{
return
new
mc_implementation
(
jobfile
,
taskname
);
};
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment