Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
FORMUS3IC_LAS3
/
embb
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1e2d0138
authored
9 years ago
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dataflow_cpp: fixed bug with global network instances in mtapi scheduler
parent
84b41395
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
dataflow_cpp/include/embb/dataflow/internal/scheduler_mtapi.h
+10
-7
No files found.
dataflow_cpp/include/embb/dataflow/internal/scheduler_mtapi.h
View file @
1e2d0138
...
@@ -66,15 +66,18 @@ class SchedulerMTAPI : public Scheduler {
...
@@ -66,15 +66,18 @@ class SchedulerMTAPI : public Scheduler {
}
}
}
}
virtual
~
SchedulerMTAPI
()
{
virtual
~
SchedulerMTAPI
()
{
embb
::
tasks
::
Node
&
node
=
embb
::
tasks
::
Node
::
GetInstance
();
if
(
embb
::
tasks
::
Node
::
IsInitialized
())
{
for
(
int
ii
=
0
;
ii
<
slices_
;
ii
++
)
{
// only destroy groups and queues if there still is an instance
group_
[
ii
]
->
WaitAll
(
MTAPI_INFINITE
);
embb
::
tasks
::
Node
&
node
=
embb
::
tasks
::
Node
::
GetInstance
();
node
.
DestroyGroup
(
*
group_
[
ii
]);
for
(
int
ii
=
0
;
ii
<
slices_
;
ii
++
)
{
group_
[
ii
]
->
WaitAll
(
MTAPI_INFINITE
);
node
.
DestroyGroup
(
*
group_
[
ii
]);
}
for
(
int
ii
=
0
;
ii
<
queue_count_
;
ii
++
)
{
node
.
DestroyQueue
(
*
queue_
[
ii
]);
}
}
}
embb
::
base
::
Allocation
::
Free
(
group_
);
embb
::
base
::
Allocation
::
Free
(
group_
);
for
(
int
ii
=
0
;
ii
<
queue_count_
;
ii
++
)
{
node
.
DestroyQueue
(
*
queue_
[
ii
]);
}
embb
::
base
::
Allocation
::
Free
(
queue_
);
embb
::
base
::
Allocation
::
Free
(
queue_
);
}
}
virtual
void
Spawn
(
Action
&
action
)
{
virtual
void
Spawn
(
Action
&
action
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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