Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QuickSched
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository 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
SWIFT
QuickSched
Commits
be009de7
Commit
be009de7
authored
9 years ago
by
aidan
Browse files
Options
Downloads
Patches
Plain Diff
Potential fix to the queue_task_overlap function
parent
6ef308ab
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/queue.c
+4
-4
4 additions, 4 deletions
src/queue.c
with
4 additions
and
4 deletions
src/queue.c
+
4
−
4
View file @
be009de7
...
...
@@ -59,13 +59,13 @@ float queue_task_overlap ( struct qsched *s , qsched_task_t a , qsched_task_t b
if
(
nr_res_a
==
0
||
nr_res_b
==
0
)
return
nr_res_a
==
nr_res_b
?
1
.
0
f
:
0
.
0
f
;
struct
res
*
res_a
[
nr_res_a
],
*
res_b
[
nr_res_b
];
for
(
int
k
=
0
;
k
<
ta
->
nr_locks
;
k
++
)
res_a
[
k
]
=
&
s
->
res
[
s
->
locks
[
ta
->
locks
[
k
]]
]
;
res_a
[
k
]
=
&
s
->
res
[
ta
->
locks
[
k
]];
for
(
int
k
=
0
;
k
<
ta
->
nr_uses
;
k
++
)
res_a
[
ta
->
nr_locks
+
k
]
=
&
s
->
res
[
s
->
locks
[
ta
->
uses
[
k
]]
]
;
res_a
[
ta
->
nr_locks
+
k
]
=
&
s
->
res
[
ta
->
uses
[
k
]];
for
(
int
k
=
0
;
k
<
tb
->
nr_locks
;
k
++
)
res_b
[
k
]
=
&
s
->
res
[
s
->
locks
[
tb
->
locks
[
k
]]
]
;
res_b
[
k
]
=
&
s
->
res
[
tb
->
locks
[
k
]];
for
(
int
k
=
0
;
k
<
tb
->
nr_uses
;
k
++
)
res_b
[
tb
->
nr_locks
+
k
]
=
&
s
->
res
[
s
->
locks
[
tb
->
uses
[
k
]]
]
;
res_b
[
tb
->
nr_locks
+
k
]
=
&
s
->
res
[
tb
->
uses
[
k
]];
/* Compute the resource union, which is just the sum of the
resource sizes. */
...
...
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