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
fbde70f0
authored
8 years ago
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mtapi_c: fixed task handling
parent
3fb52e5d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
mtapi_c/src/embb_mtapi_scheduler_t.c
+2
-2
mtapi_c/src/embb_mtapi_task_queue_t.c
+1
-1
No files found.
mtapi_c/src/embb_mtapi_scheduler_t.c
View file @
fbde70f0
...
@@ -230,8 +230,8 @@ void embb_mtapi_scheduler_finalize_task(
...
@@ -230,8 +230,8 @@ void embb_mtapi_scheduler_finalize_task(
if
(
MTAPI_NULL
!=
task
->
attributes
.
complete_func
)
{
if
(
MTAPI_NULL
!=
task
->
attributes
.
complete_func
)
{
task
->
attributes
.
complete_func
(
task
->
handle
,
MTAPI_NULL
);
task
->
attributes
.
complete_func
(
task
->
handle
,
MTAPI_NULL
);
}
}
/* delete task if detached */
/* delete task if detached
and not in a group
*/
if
(
MTAPI_TRUE
==
task
->
attributes
.
is_detached
)
{
if
(
MTAPI_
NULL
==
group
&&
MTAPI_
TRUE
==
task
->
attributes
.
is_detached
)
{
embb_mtapi_task_delete
(
task
,
node
->
task_pool
);
embb_mtapi_task_delete
(
task
,
node
->
task_pool
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
mtapi_c/src/embb_mtapi_task_queue_t.c
View file @
fbde70f0
...
@@ -146,7 +146,7 @@ mtapi_boolean_t embb_mtapi_task_queue_process(
...
@@ -146,7 +146,7 @@ mtapi_boolean_t embb_mtapi_task_queue_process(
if
(
embb_spin_lock
(
&
that
->
lock
)
==
EMBB_SUCCESS
)
{
if
(
embb_spin_lock
(
&
that
->
lock
)
==
EMBB_SUCCESS
)
{
idx
=
that
->
get_task_position
;
idx
=
that
->
get_task_position
;
for
(
ii
=
0
;
ii
<
that
->
tasks_available
;
ii
++
)
{
for
(
ii
=
0
;
ii
<
that
->
tasks_available
;
ii
++
)
{
result
=
process
(
that
->
task_buffer
[
i
i
],
user_data
);
result
=
process
(
that
->
task_buffer
[
i
dx
],
user_data
);
if
(
MTAPI_FALSE
==
result
)
{
if
(
MTAPI_FALSE
==
result
)
{
break
;
break
;
}
}
...
...
This diff is collapsed.
Click to expand it.
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