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
3ed41486
authored
Mar 23, 2015
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mtapi_network_c: fixed 64bit issue
parent
b3be3691
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
mtapi_network_c/src/embb_mtapi_network.c
+7
-3
No files found.
mtapi_network_c/src/embb_mtapi_network.c
View file @
3ed41486
...
...
@@ -226,7 +226,7 @@ static int embb_mtapi_network_thread(void * args) {
if
(
operation
==
EMBB_MTAPI_NETWORK_START_TASK
)
{
int32_t
arguments_size
;
int32_t
priority
;
mtapi_uint_t
priority
=
0
;
mtapi_job_hndl_t
job_hndl
;
mtapi_task_attributes_t
task_attr
;
void
*
arguments
;
...
...
@@ -247,7 +247,8 @@ static int embb_mtapi_network_thread(void * args) {
err
=
embb_mtapi_network_buffer_pop_front_int32
(
&
buffer
,
&
job_id
);
assert
(
err
==
4
);
// priority
err
=
embb_mtapi_network_buffer_pop_front_int32
(
&
buffer
,
&
priority
);
err
=
embb_mtapi_network_buffer_pop_front_int32
(
&
buffer
,
(
int32_t
*
)
&
priority
);
assert
(
err
==
4
);
// remote task handle
err
=
embb_mtapi_network_buffer_pop_front_int32
(
...
...
@@ -282,13 +283,16 @@ static int embb_mtapi_network_thread(void * args) {
network_task
->
socket
=
*
socket
;
mtapi_taskattr_init
(
&
task_attr
,
&
local_status
);
assert
(
local_status
==
MTAPI_SUCCESS
);
mtapi_taskattr_set
(
&
task_attr
,
MTAPI_TASK_USER_DATA
,
(
void
*
)
network_task
,
0
,
&
local_status
);
assert
(
local_status
==
MTAPI_SUCCESS
);
mtapi_boolean_t
task_detached
=
MTAPI_TRUE
;
mtapi_taskattr_set
(
&
task_attr
,
MTAPI_TASK_DETACHED
,
(
void
*
)
&
task_detached
,
sizeof
(
mtapi_boolean_t
),
&
local_status
);
assert
(
local_status
==
MTAPI_SUCCESS
);
mtapi_taskattr_set
(
&
task_attr
,
MTAPI_TASK_PRIORITY
,
(
void
*
)
&
priority
,
sizeof
(
int32
_t
),
&
local_status
);
(
void
*
)
&
priority
,
sizeof
(
mtapi_uint
_t
),
&
local_status
);
assert
(
local_status
==
MTAPI_SUCCESS
);
memcpy
(
&
func_void
,
&
func
,
sizeof
(
void
*
));
mtapi_taskattr_set
(
&
task_attr
,
MTAPI_TASK_COMPLETE_FUNCTION
,
...
...
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