Skip to content
GitLab
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
3f04182c
Commit
3f04182c
authored
Jun 23, 2013
by
Pedro Gonnet
Browse files
remove debugging code.
Former-commit-id: 078426fee6f75ec742c9435c44607d0408797cce
parent
6e4ceaa3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/queue.c
View file @
3f04182c
...
...
@@ -161,7 +161,7 @@ void queue_init ( struct queue *q , struct task *tasks ) {
struct
task
*
queue_gettask
(
struct
queue
*
q
,
int
qid
,
int
blocking
)
{
int
k
,
kk
,
i
,
temp
,
qcount
,
*
qtid
,
type
;
int
k
,
i
,
temp
,
qcount
,
*
qtid
,
type
;
lock_type
*
qlock
=
&
q
->
lock
;
struct
task
*
qtasks
,
*
res
=
NULL
;
struct
cell
*
ci
,
*
cj
;
...
...
@@ -233,8 +233,6 @@ struct task *queue_gettask ( struct queue *q , int qid , int blocking ) {
cj
->
super
->
owner
=
qid
;
/* Swap this task with the last task and re-heap. */
kk
=
k
;
k
=
kk
;
if
(
k
<
qcount
)
{
qtid
[
k
]
=
qtid
[
qcount
];
while
(
qtasks
[
qtid
[
k
]
].
weight
>
qtasks
[
qtid
[(
k
-
1
)
/
2
]
].
weight
)
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment