Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cdo
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
cdo
Commits
578b4c22
Commit
578b4c22
authored
5 months ago
by
Oliver Heidmann
Browse files
Options
Downloads
Patches
Plain Diff
removed parentProcesses from Process
parent
0571f844
No related branches found
No related tags found
1 merge request
!286
removed parentProcesses from Process
Pipeline
#89235
passed
5 months ago
Stage: build
Stage: check
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/process.cc
+2
-8
2 additions, 8 deletions
src/process.cc
src/process.h
+1
-2
1 addition, 2 deletions
src/process.h
with
3 additions
and
10 deletions
src/process.cc
+
2
−
8
View file @
578b4c22
...
...
@@ -148,18 +148,12 @@ Process::add_pipe_in_stream()
void
Process
::
add_parent
(
const
std
::
shared_ptr
<
Process
>
&
parentProcess
)
{
parentProcesses
.
push_back
(
parentProcess
);
m_posInParent
=
parentProcess
->
inputStreams
.
size
()
-
1
;
add_pipe_out_stream
();
}
void
Process
::
add_pipe_out_stream
()
{
outputStreams
.
push_back
(
parentProcesses
[
0
]
->
inputStreams
[
m_posInParent
]);
outputStreams
.
push_back
(
parentProcess
->
inputStreams
[
m_posInParent
]);
m_streamCnt
++
;
}
void
*
execute
(
void
*
process
)
{
...
...
This diff is collapsed.
Click to expand it.
src/process.h
+
1
−
2
View file @
578b4c22
...
...
@@ -42,7 +42,6 @@ public:
const
CdoModule
&
m_module
;
int
m_posInParent
;
std
::
vector
<
std
::
shared_ptr
<
Process
>>
childProcesses
;
std
::
vector
<
std
::
shared_ptr
<
Process
>>
parentProcesses
;
std
::
vector
<
CdoStreamID
>
inputStreams
;
std
::
vector
<
CdoStreamID
>
outputStreams
;
...
...
@@ -63,7 +62,7 @@ public:
/* Member Functions */
Process
(
int
p_ID
,
const
std
::
string
&
p_operatorName
,
const
std
::
vector
<
std
::
string
>
&
p_arguments
,
const
CdoModule
&
p_module
);
virtual
~
Process
()
{}
virtual
~
Process
()
{
Debug
(
PROCESS
,
"destruction of %s"
,
operatorName
);
}
pthread_t
start_thread
();
virtual
void
init
()
=
0
;
...
...
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