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
a8b34df5
authored
Jun 21, 2016
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed cpplint warnings
parent
1be266cd
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
3 deletions
+6
-3
dataflow_cpp/include/embb/dataflow/internal/scheduler_mtapi.h
+2
-1
mtapi_c/src/embb_mtapi_thread_context_t.c
+2
-1
mtapi_cpp/include/embb/mtapi/job.h
+0
-0
mtapi_cpp/include/embb/mtapi/node.h
+2
-1
No files found.
dataflow_cpp/include/embb/dataflow/internal/scheduler_mtapi.h
View file @
a8b34df5
...
@@ -54,7 +54,8 @@ class SchedulerMTAPI : public Scheduler {
...
@@ -54,7 +54,8 @@ class SchedulerMTAPI : public Scheduler {
}
}
job_
=
node
.
GetJob
(
EMBB_DATAFLOW_JOB_ID
);
job_
=
node
.
GetJob
(
EMBB_DATAFLOW_JOB_ID
);
action_
=
node
.
CreateAction
(
EMBB_DATAFLOW_JOB_ID
,
SchedulerMTAPI
::
action_func
);
action_
=
node
.
CreateAction
(
EMBB_DATAFLOW_JOB_ID
,
SchedulerMTAPI
::
action_func
);
group_
=
reinterpret_cast
<
embb
::
mtapi
::
Group
*>
(
group_
=
reinterpret_cast
<
embb
::
mtapi
::
Group
*>
(
embb
::
base
::
Allocation
::
Allocate
(
embb
::
base
::
Allocation
::
Allocate
(
...
...
mtapi_c/src/embb_mtapi_thread_context_t.c
View file @
a8b34df5
...
@@ -54,7 +54,8 @@ mtapi_boolean_t embb_mtapi_thread_context_initialize_with_node_worker_and_core(
...
@@ -54,7 +54,8 @@ mtapi_boolean_t embb_mtapi_thread_context_initialize_with_node_worker_and_core(
that
->
core_num
=
core_num
;
that
->
core_num
=
core_num
;
that
->
priorities
=
node
->
attributes
.
max_priorities
;
that
->
priorities
=
node
->
attributes
.
max_priorities
;
that
->
is_initialized
=
MTAPI_FALSE
;
that
->
is_initialized
=
MTAPI_FALSE
;
that
->
is_main_thread
=
(
worker_index
==
0
)
?
node
->
attributes
.
reuse_main_thread
:
MTAPI_FALSE
;
that
->
is_main_thread
=
(
worker_index
==
0
)
?
node
->
attributes
.
reuse_main_thread
:
MTAPI_FALSE
;
embb_atomic_store_int
(
&
that
->
run
,
0
);
embb_atomic_store_int
(
&
that
->
run
,
0
);
that
->
queue
=
(
embb_mtapi_task_queue_t
**
)
embb_mtapi_alloc_allocate
(
that
->
queue
=
(
embb_mtapi_task_queue_t
**
)
embb_mtapi_alloc_allocate
(
...
...
mtapi_cpp/include/embb/mtapi/job.h
View file @
a8b34df5
mtapi_cpp/include/embb/mtapi/node.h
View file @
a8b34df5
...
@@ -452,7 +452,8 @@ class Node {
...
@@ -452,7 +452,8 @@ class Node {
mtapi_task_context_t
*
context
)
{
mtapi_task_context_t
*
context
)
{
TaskContext
task_context
(
context
);
TaskContext
task_context
(
context
);
embb
::
base
::
Function
<
void
,
TaskContext
&>
*
func
=
embb
::
base
::
Function
<
void
,
TaskContext
&>
*
func
=
reinterpret_cast
<
embb
::
base
::
Function
<
void
,
TaskContext
&>*>
(
const_cast
<
void
*>
(
args
));
reinterpret_cast
<
embb
::
base
::
Function
<
void
,
TaskContext
&>*>
(
const_cast
<
void
*>
(
args
));
(
*
func
)(
task_context
);
(
*
func
)(
task_context
);
embb
::
base
::
Allocation
::
Delete
(
func
);
embb
::
base
::
Allocation
::
Delete
(
func
);
}
}
...
...
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