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
4ec3eafb
authored
Oct 04, 2016
by
Tobias Langer
Committed by
Tobias Langer
Nov 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplified check for invalid nodes in priority queue.
parent
af13f98c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mtapi_c/src/embb_mtapi_priority_queue_t.c
+2
-2
No files found.
mtapi_c/src/embb_mtapi_priority_queue_t.c
View file @
4ec3eafb
...
@@ -134,15 +134,15 @@ embb_mtapi_task_t * embb_mtapi_priority_queue_pop(embb_mtapi_priority_queue_t* t
...
@@ -134,15 +134,15 @@ embb_mtapi_task_t * embb_mtapi_priority_queue_pop(embb_mtapi_priority_queue_t* t
if
(
that
->
task_buffer
[
ii
+
1
]
!=
MTAPI_NULL
)
{
if
(
that
->
task_buffer
[
ii
+
1
]
!=
MTAPI_NULL
)
{
left_deadline
=
get_deadline
(
that
->
task_buffer
[
ii
+
1
]
->
handle
);
left_deadline
=
get_deadline
(
that
->
task_buffer
[
ii
+
1
]
->
handle
);
}
else
{
}
else
{
/* set the time to an invalid value. */
left_deadline
.
seconds
=
ULLONG_MAX
;
left_deadline
.
seconds
=
ULLONG_MAX
;
left_deadline
.
nanoseconds
=
ULONG_MAX
;
}
}
if
(
that
->
task_buffer
[
ii
+
2
]
!=
MTAPI_NULL
)
{
if
(
that
->
task_buffer
[
ii
+
2
]
!=
MTAPI_NULL
)
{
right_deadline
=
get_deadline
(
that
->
task_buffer
[
ii
+
2
]
->
handle
);
right_deadline
=
get_deadline
(
that
->
task_buffer
[
ii
+
2
]
->
handle
);
}
else
{
}
else
{
/* set the time to an invalid value. */
right_deadline
.
seconds
=
ULLONG_MAX
;
right_deadline
.
seconds
=
ULLONG_MAX
;
right_deadline
.
nanoseconds
=
ULONG_MAX
;
}
}
/* min Heap, swap with the smaller of both children. */
/* min Heap, swap with the smaller of both children. */
...
...
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