Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
Power System Simulation and Optimization
DPsim
DPsim
Commits
aaa7349a
Commit
aaa7349a
authored
Oct 21, 2020
by
Markus Mirz
Browse files
remove unused result warning
parent
d67e72e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/PthreadPoolScheduler.cpp
View file @
aaa7349a
...
...
@@ -31,7 +31,7 @@ PthreadPoolScheduler::PthreadPoolScheduler(size_t poolSize) {
PthreadPoolScheduler
::~
PthreadPoolScheduler
()
{
for
(
size_t
i
=
0
;
i
<
mThreads
.
size
();
i
++
)
{
queue_signalled_push
(
&
mOutQueue
,
nullptr
);
(
void
)
!
queue_signalled_push
(
&
mOutQueue
,
nullptr
);
}
for
(
size_t
i
=
0
;
i
<
mThreads
.
size
();
i
++
)
{
pthread_join
(
mThreads
[
i
],
nullptr
);
...
...
@@ -47,8 +47,8 @@ void PthreadPoolScheduler::createSchedule(const Task::List& tasks, const Edges&
// TODO Wastes memory, but guarantees that the writes always succeed.
// Figure out a smarter way to do this.
queue_signalled_init
(
&
mOutQueue
,
tasks
.
size
(),
&
memory_heap
,
QueueSignalledMode
::
POLLING
);
queue_signalled_init
(
&
mDoneQueue
,
tasks
.
size
(),
&
memory_heap
,
QueueSignalledMode
::
POLLING
);
(
void
)
!
queue_signalled_init
(
&
mOutQueue
,
tasks
.
size
(),
&
memory_heap
,
QueueSignalledMode
::
POLLING
);
(
void
)
!
queue_signalled_init
(
&
mDoneQueue
,
tasks
.
size
(),
&
memory_heap
,
QueueSignalledMode
::
POLLING
);
for
(
size_t
i
=
0
;
i
<
mThreads
.
size
();
i
++
)
{
if
(
pthread_create
(
&
mThreads
[
i
],
NULL
,
poolThreadFunction
,
this
))
...
...
Write
Preview
Supports
Markdown
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