Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
2bdeb8c3
Commit
2bdeb8c3
authored
Aug 14, 2017
by
Peter W. Draper
Browse files
Report the number of tasks in use when the overflow happened
parent
7500cfc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scheduler.c
View file @
2bdeb8c3
...
...
@@ -772,8 +772,8 @@ struct task *scheduler_addtask(struct scheduler *s, enum task_types type,
const
int
ind
=
atomic_inc
(
&
s
->
tasks_next
);
/* Overflow? */
if
(
ind
>=
s
->
size
)
error
(
"Task list overflow. Need to increase "
"Scheduler:tasks_per_cell."
);
if
(
ind
>=
s
->
size
)
error
(
"Task list overflow
(%d)
. Need to increase "
"Scheduler:tasks_per_cell."
,
ind
);
/* Get a pointer to the new task. */
struct
task
*
t
=
&
s
->
tasks
[
ind
];
...
...
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