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
Feb 23, 2016
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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
dataflow_cpp/include/embb/dataflow/internal/scheduler_mtapi.h
+4
-1
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
()
{
if
(
embb
::
tasks
::
Node
::
IsInitialized
())
{
// only destroy groups and queues if there still is an instance
embb
::
tasks
::
Node
&
node
=
embb
::
tasks
::
Node
::
GetInstance
();
embb
::
tasks
::
Node
&
node
=
embb
::
tasks
::
Node
::
GetInstance
();
for
(
int
ii
=
0
;
ii
<
slices_
;
ii
++
)
{
for
(
int
ii
=
0
;
ii
<
slices_
;
ii
++
)
{
group_
[
ii
]
->
WaitAll
(
MTAPI_INFINITE
);
group_
[
ii
]
->
WaitAll
(
MTAPI_INFINITE
);
node
.
DestroyGroup
(
*
group_
[
ii
]);
node
.
DestroyGroup
(
*
group_
[
ii
]);
}
}
embb
::
base
::
Allocation
::
Free
(
group_
);
for
(
int
ii
=
0
;
ii
<
queue_count_
;
ii
++
)
{
for
(
int
ii
=
0
;
ii
<
queue_count_
;
ii
++
)
{
node
.
DestroyQueue
(
*
queue_
[
ii
]);
node
.
DestroyQueue
(
*
queue_
[
ii
]);
}
}
}
embb
::
base
::
Allocation
::
Free
(
group_
);
embb
::
base
::
Allocation
::
Free
(
queue_
);
embb
::
base
::
Allocation
::
Free
(
queue_
);
}
}
virtual
void
Spawn
(
Action
&
action
)
{
virtual
void
Spawn
(
Action
&
action
)
{
...
...
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