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
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
12 deletions
+15
-12
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
+9
-9
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 {
}
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
*>
(
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(
that
->
core_num
=
core_num
;
that
->
priorities
=
node
->
attributes
.
max_priorities
;
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
);
that
->
queue
=
(
embb_mtapi_task_queue_t
**
)
embb_mtapi_alloc_allocate
(
...
...
mtapi_cpp/include/embb/mtapi/job.h
View file @
a8b34df5
...
...
@@ -85,16 +85,16 @@ class Job {
* Constructs a Job with the given \c job_id and \c domain_id.
* Requires an initialized Node.
*/
Job
(
mtapi_job_id_t
job_id
,
/**< Job ID to use. */
mtapi_domain_t
domain_id
/**< Domain ID to use. */
)
{
mtapi_status_t
status
;
handle_
=
mtapi_job_get
(
job_id
,
domain_id
,
&
status
);
internal
::
CheckStatus
(
status
);
}
Job
(
mtapi_job_id_t
job_id
,
/**< Job ID to use. */
mtapi_domain_t
domain_id
/**< Domain ID to use. */
)
{
mtapi_status_t
status
;
handle_
=
mtapi_job_get
(
job_id
,
domain_id
,
&
status
);
internal
::
CheckStatus
(
status
);
}
mtapi_job_hndl_t
handle_
;
mtapi_job_hndl_t
handle_
;
};
}
// namespace mtapi
...
...
mtapi_cpp/include/embb/mtapi/node.h
View file @
a8b34df5
...
...
@@ -452,7 +452,8 @@ class Node {
mtapi_task_context_t
*
context
)
{
TaskContext
task_context
(
context
);
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
);
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