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
dbe5709b
authored
Mar 25, 2015
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed cpplint warnings
parent
f28aa800
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
30 additions
and
32 deletions
+30
-32
algorithms_cpp/include/embb/algorithms/invoke.h
+2
-2
mtapi_cpp/include/embb/mtapi/action.h
+2
-1
mtapi_cpp/include/embb/mtapi/action_attributes.h
+2
-2
mtapi_cpp/include/embb/mtapi/affinity.h
+2
-2
mtapi_cpp/include/embb/mtapi/group_attributes.h
+2
-2
mtapi_cpp/include/embb/mtapi/job.h
+3
-3
mtapi_cpp/include/embb/mtapi/node.h
+4
-8
mtapi_cpp/include/embb/mtapi/node_attributes.h
+2
-2
mtapi_cpp/include/embb/mtapi/queue_attributes.h
+2
-2
mtapi_cpp/include/embb/mtapi/task.h
+1
-1
mtapi_cpp/include/embb/mtapi/task_attributes.h
+2
-2
mtapi_cpp/include/embb/mtapi/task_context.h
+1
-1
mtapi_cpp/test/mtapi_cpp_test_task.cc
+2
-1
tasks_cpp/test/tasks_cpp_test_task.h
+3
-3
No files found.
algorithms_cpp/include/embb/algorithms/invoke.h
View file @
dbe5709b
...
...
@@ -96,8 +96,8 @@ class TaskWrapper {
Function
function
,
const
embb
::
tasks
::
ExecutionPolicy
&
policy
)
:
function_
(
function
),
task_
()
{
embb
::
tasks
::
Action
action
(
embb
::
base
::
MakeFunction
(
*
this
,
&
TaskWrapper
::
Run
),
policy
);
embb
::
tasks
::
Action
action
(
embb
::
base
::
MakeFunction
(
*
this
,
&
TaskWrapper
::
Run
),
policy
);
task_
=
embb
::
tasks
::
Node
::
GetInstance
().
Spawn
(
action
);
}
...
...
mtapi_cpp/include/embb/mtapi/action.h
View file @
dbe5709b
...
...
@@ -127,7 +127,8 @@ class Action {
mtapi_action_attributes_t
const
*
attributes
)
{
mtapi_status_t
status
;
handle_
=
mtapi_action_create
(
job_id
,
func
,
node_local_data
,
node_local_data_size
,
handle_
=
mtapi_action_create
(
job_id
,
func
,
node_local_data
,
node_local_data_size
,
attributes
,
&
status
);
internal
::
CheckStatus
(
status
);
}
...
...
mtapi_cpp/include/embb/mtapi/action_attributes.h
View file @
dbe5709b
...
...
@@ -40,7 +40,7 @@ namespace mtapi {
* \ingroup CPP_MTAPI
*/
class
ActionAttributes
{
public
:
public
:
/**
* Constructs an ActionAttributes object.
*/
...
...
@@ -111,7 +111,7 @@ public:
return
attributes_
;
}
private
:
private
:
mtapi_action_attributes_t
attributes_
;
};
...
...
mtapi_cpp/include/embb/mtapi/affinity.h
View file @
dbe5709b
...
...
@@ -39,7 +39,7 @@ namespace mtapi {
* \ingroup CPP_MTAPI
*/
class
Affinity
{
public
:
public
:
/**
* Constructs an Affinity object.
*/
...
...
@@ -135,7 +135,7 @@ public:
return
affinity_
;
}
private
:
private
:
mtapi_affinity_t
affinity_
;
};
...
...
mtapi_cpp/include/embb/mtapi/group_attributes.h
View file @
dbe5709b
...
...
@@ -39,7 +39,7 @@ namespace mtapi {
* \ingroup CPP_MTAPI
*/
class
GroupAttributes
{
public
:
public
:
/**
* Constructs a GroupAttributes object.
*/
...
...
@@ -60,7 +60,7 @@ public:
return
attributes_
;
}
private
:
private
:
mtapi_group_attributes_t
attributes_
;
};
...
...
mtapi_cpp/include/embb/mtapi/job.h
View file @
dbe5709b
...
...
@@ -39,7 +39,7 @@ namespace mtapi {
* \ingroup CPP_MTAPI
*/
class
Job
{
public
:
public
:
/**
* Constructs a Job.
* The Job object will be invalid.
...
...
@@ -91,11 +91,11 @@ public:
return
handle_
;
}
private
:
private
:
mtapi_job_hndl_t
handle_
;
};
}
// namespace mtapi
}
// namespace embb
#endif // EMBB_MTAPI_
GROUP_ATTRIBUTES
_H_
#endif // EMBB_MTAPI_
JOB
_H_
mtapi_cpp/include/embb/mtapi/node.h
View file @
dbe5709b
...
...
@@ -73,8 +73,7 @@ class Node {
if
(
IsInitialized
())
{
EMBB_THROW
(
StatusException
,
"MTAPI: node was already initialized."
);
}
else
{
}
else
{
NodeAttributes
attributes
;
// default attributes
node_instance_
=
embb
::
base
::
Allocation
::
New
<
Node
>
(
domain_id
,
node_id
,
attributes
);
...
...
@@ -96,8 +95,7 @@ class Node {
if
(
IsInitialized
())
{
EMBB_THROW
(
StatusException
,
"MTAPI: node was already initialized."
);
}
else
{
}
else
{
node_instance_
=
embb
::
base
::
Allocation
::
New
<
Node
>
(
domain_id
,
node_id
,
attributes
);
}
...
...
@@ -121,8 +119,7 @@ class Node {
static
Node
&
GetInstance
()
{
if
(
IsInitialized
())
{
return
*
node_instance_
;
}
else
{
}
else
{
EMBB_THROW
(
StatusException
,
"MTAPI: node is not initialized."
);
}
...
...
@@ -137,8 +134,7 @@ class Node {
if
(
IsInitialized
())
{
embb
::
base
::
Allocation
::
Delete
(
node_instance_
);
node_instance_
=
NULL
;
}
else
{
}
else
{
EMBB_THROW
(
StatusException
,
"MTAPI: node is not initialized."
);
}
...
...
mtapi_cpp/include/embb/mtapi/node_attributes.h
View file @
dbe5709b
...
...
@@ -40,7 +40,7 @@ namespace mtapi {
* \ingroup CPP_MTAPI
*/
class
NodeAttributes
{
public
:
public
:
/**
* Constructs a NodeAttributes object.
*/
...
...
@@ -226,7 +226,7 @@ public:
return
attributes_
;
}
private
:
private
:
mtapi_node_attributes_t
attributes_
;
};
...
...
mtapi_cpp/include/embb/mtapi/queue_attributes.h
View file @
dbe5709b
...
...
@@ -39,7 +39,7 @@ namespace mtapi {
* \ingroup CPP_MTAPI
*/
class
QueueAttributes
{
public
:
public
:
/**
* Constructs a QueueAttributes object.
*/
...
...
@@ -166,7 +166,7 @@ public:
return
attributes_
;
}
private
:
private
:
mtapi_queue_attributes_t
attributes_
;
};
...
...
mtapi_cpp/include/embb/mtapi/task.h
View file @
dbe5709b
...
...
@@ -121,7 +121,7 @@ class Task {
}
private
:
Task
(
mtapi_task_hndl_t
handle
)
explicit
Task
(
mtapi_task_hndl_t
handle
)
:
handle_
(
handle
)
{
// empty
}
...
...
mtapi_cpp/include/embb/mtapi/task_attributes.h
View file @
dbe5709b
...
...
@@ -39,7 +39,7 @@ namespace mtapi {
* \ingroup CPP_MTAPI
*/
class
TaskAttributes
{
public
:
public
:
/**
* Constructs a TaskAttributes object.
*/
...
...
@@ -115,7 +115,7 @@ public:
return
attributes_
;
}
private
:
private
:
mtapi_task_attributes_t
attributes_
;
};
...
...
mtapi_cpp/include/embb/mtapi/task_context.h
View file @
dbe5709b
...
...
@@ -50,7 +50,7 @@ class TaskContext {
:
context_
(
task_context
)
{
// empty
}
/**
* Queries whether the Task running in the TaskContext should finish.
* \return \c true if the Task should finish, otherwise \c false
...
...
mtapi_cpp/test/mtapi_cpp_test_task.cc
View file @
dbe5709b
...
...
@@ -111,7 +111,8 @@ void TaskTest::TestBasic() {
{
embb
::
mtapi
::
Job
job_error
(
JOB_TEST_ERROR
,
THIS_DOMAIN_ID
);
embb
::
mtapi
::
Action
action_error
(
JOB_TEST_ERROR
,
testErrorAction
,
embb
::
mtapi
::
ActionAttributes
());
embb
::
mtapi
::
Action
action_error
(
JOB_TEST_ERROR
,
testErrorAction
,
embb
::
mtapi
::
ActionAttributes
());
std
::
string
test
;
embb
::
mtapi
::
Task
task
=
node
.
Start
(
job_error
,
"simple"
,
&
test
);
...
...
tasks_cpp/test/tasks_cpp_test_task.h
View file @
dbe5709b
...
...
@@ -24,8 +24,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef
MTAPI_CPP_TEST_MTAPI
_CPP_TEST_TASK_H_
#define
MTAPI_CPP_TEST_MTAPI
_CPP_TEST_TASK_H_
#ifndef
TASKS_CPP_TEST_TASKS
_CPP_TEST_TASK_H_
#define
TASKS_CPP_TEST_TASKS
_CPP_TEST_TASK_H_
#include <partest/partest.h>
...
...
@@ -37,4 +37,4 @@ class TaskTest : public partest::TestCase {
void
TestBasic
();
};
#endif //
MTAPI_CPP_TEST_MTAPI
_CPP_TEST_TASK_H_
#endif //
TASKS_CPP_TEST_TASKS
_CPP_TEST_TASK_H_
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