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
8890b584
authored
Oct 27, 2016
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mtapi_cpp: added missing thread-safety attributes in documentation
parent
615b3feb
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
6 deletions
+46
-6
mtapi_cpp/include/embb/mtapi/action.h
+9
-0
mtapi_cpp/include/embb/mtapi/group.h
+20
-6
mtapi_cpp/include/embb/mtapi/node.h
+12
-0
mtapi_cpp/include/embb/mtapi/queue.h
+5
-0
No files found.
mtapi_cpp/include/embb/mtapi/action.h
View file @
8890b584
...
@@ -44,6 +44,8 @@ class Action {
...
@@ -44,6 +44,8 @@ class Action {
/**
/**
* Constructs an Action.
* Constructs an Action.
* The Action object will be invalid.
* The Action object will be invalid.
*
* \waitfree
*/
*/
Action
()
{
Action
()
{
handle_
.
id
=
0
;
handle_
.
id
=
0
;
...
@@ -52,6 +54,8 @@ class Action {
...
@@ -52,6 +54,8 @@ class Action {
/**
/**
* Copies an Action.
* Copies an Action.
*
* \waitfree
*/
*/
Action
(
Action
(
Action
const
&
other
/**< Action to copy */
Action
const
&
other
/**< Action to copy */
...
@@ -63,6 +67,7 @@ class Action {
...
@@ -63,6 +67,7 @@ class Action {
* Copies an Action.
* Copies an Action.
*
*
* \returns Reference to this object.
* \returns Reference to this object.
* \waitfree
*/
*/
Action
&
operator
=
(
Action
&
operator
=
(
Action
const
&
other
/**< Action to copy */
Action
const
&
other
/**< Action to copy */
...
@@ -73,6 +78,8 @@ class Action {
...
@@ -73,6 +78,8 @@ class Action {
/**
/**
* Deletes an Action.
* Deletes an Action.
*
* \threadsafe
*/
*/
void
Delete
()
{
void
Delete
()
{
mtapi_action_delete
(
handle_
,
MTAPI_INFINITE
,
MTAPI_NULL
);
mtapi_action_delete
(
handle_
,
MTAPI_INFINITE
,
MTAPI_NULL
);
...
@@ -94,6 +101,8 @@ class Action {
...
@@ -94,6 +101,8 @@ class Action {
private
:
private
:
/**
/**
* Constructs an Action.
* Constructs an Action.
*
* \threadsafe
*/
*/
Action
(
Action
(
mtapi_job_id_t
job_id
,
/**< Job ID the Action belongs to */
mtapi_job_id_t
job_id
,
/**< Job ID the Action belongs to */
...
...
mtapi_cpp/include/embb/mtapi/group.h
View file @
8890b584
...
@@ -53,6 +53,8 @@ class Group {
...
@@ -53,6 +53,8 @@ class Group {
public
:
public
:
/**
/**
* Copies a Group.
* Copies a Group.
*
* \waitfree
*/
*/
Group
(
Group
(
Group
const
&
other
/**< Group to copy */
Group
const
&
other
/**< Group to copy */
...
@@ -64,6 +66,7 @@ class Group {
...
@@ -64,6 +66,7 @@ class Group {
* Copies a Group.
* Copies a Group.
*
*
* \returns Reference to this object.
* \returns Reference to this object.
* \waitfree
*/
*/
Group
&
operator
=
(
Group
&
operator
=
(
Group
const
&
other
/**< Group to copy */
Group
const
&
other
/**< Group to copy */
...
@@ -74,6 +77,8 @@ class Group {
...
@@ -74,6 +77,8 @@ class Group {
/**
/**
* Deletes a Group object.
* Deletes a Group object.
*
* \threadsafe
*/
*/
void
Delete
()
{
void
Delete
()
{
// delete the group, ignore status
// delete the group, ignore status
...
@@ -257,6 +262,8 @@ class Group {
...
@@ -257,6 +262,8 @@ class Group {
/**
/**
* Constructs a Group object with given attributes and ID.
* Constructs a Group object with given attributes and ID.
* Requires an initialized Node.
* Requires an initialized Node.
*
* \threadsafe
*/
*/
Group
(
Group
(
mtapi_group_id_t
id
,
/**< A user defined ID of the Group. */
mtapi_group_id_t
id
,
/**< A user defined ID of the Group. */
...
@@ -268,14 +275,21 @@ class Group {
...
@@ -268,14 +275,21 @@ class Group {
internal
::
CheckStatus
(
status
);
internal
::
CheckStatus
(
status
);
}
}
/**
* Starts a new Task in this Group.
*
* \returns The handle to the started Task.
* \threadsafe
*/
Task
Start
(
Task
Start
(
mtapi_task_id_t
task_id
,
mtapi_task_id_t
task_id
,
/**< A user defined ID of the Task. */
mtapi_job_hndl_t
job
,
mtapi_job_hndl_t
job
,
/**< The Job to execute. */
const
void
*
arguments
,
const
void
*
arguments
,
/**< Pointer to the arguments. */
mtapi_size_t
arguments_size
,
mtapi_size_t
arguments_size
,
/**< Size of the argument buffer. */
void
*
results
,
void
*
results
,
/**< Pointer to the results. */
mtapi_size_t
results_size
,
mtapi_size_t
results_size
,
/**< Size of the result buffer. */
mtapi_task_attributes_t
const
*
attributes
mtapi_task_attributes_t
const
*
attributes
/**< Attributes of the Task */
)
{
)
{
mtapi_status_t
status
;
mtapi_status_t
status
;
mtapi_task_hndl_t
task_hndl
=
mtapi_task_hndl_t
task_hndl
=
...
...
mtapi_cpp/include/embb/mtapi/node.h
View file @
8890b584
...
@@ -292,6 +292,7 @@ class Node {
...
@@ -292,6 +292,7 @@ class Node {
* Get the job with the given id in the domain of the node.
* Get the job with the given id in the domain of the node.
*
*
* \returns The handle for the requested Job.
* \returns The handle for the requested Job.
* \waitfree
*/
*/
Job
GetJob
(
Job
GetJob
(
mtapi_job_id_t
job_id
/**< ID of the job to return */
mtapi_job_id_t
job_id
/**< ID of the job to return */
...
@@ -303,6 +304,7 @@ class Node {
...
@@ -303,6 +304,7 @@ class Node {
* Get the job with the given id in the specified domain.
* Get the job with the given id in the specified domain.
*
*
* \returns The handle for the requested Job.
* \returns The handle for the requested Job.
* \waitfree
*/
*/
Job
GetJob
(
Job
GetJob
(
mtapi_job_id_t
job_id
,
/**< ID of the job to return */
mtapi_job_id_t
job_id
,
/**< ID of the job to return */
...
@@ -315,6 +317,7 @@ class Node {
...
@@ -315,6 +317,7 @@ class Node {
* Constructs an Action.
* Constructs an Action.
*
*
* \returns The handle for the new Action.
* \returns The handle for the new Action.
* \lockfree
*/
*/
Action
CreateAction
(
Action
CreateAction
(
mtapi_job_id_t
job_id
,
/**< Job ID the Action belongs to */
mtapi_job_id_t
job_id
,
/**< Job ID the Action belongs to */
...
@@ -333,6 +336,7 @@ class Node {
...
@@ -333,6 +336,7 @@ class Node {
* Constructs an Action.
* Constructs an Action.
*
*
* \returns The handle for the new Action.
* \returns The handle for the new Action.
* \lockfree
*/
*/
Action
CreateAction
(
Action
CreateAction
(
mtapi_job_id_t
job_id
,
/**< Job ID the Action belongs to */
mtapi_job_id_t
job_id
,
/**< Job ID the Action belongs to */
...
@@ -349,6 +353,7 @@ class Node {
...
@@ -349,6 +353,7 @@ class Node {
* Constructs an Action.
* Constructs an Action.
*
*
* \returns The handle for the new Action.
* \returns The handle for the new Action.
* \lockfree
*/
*/
Action
CreateAction
(
Action
CreateAction
(
mtapi_job_id_t
job_id
,
/**< Job ID the Action belongs to */
mtapi_job_id_t
job_id
,
/**< Job ID the Action belongs to */
...
@@ -363,6 +368,7 @@ class Node {
...
@@ -363,6 +368,7 @@ class Node {
* Constructs an Action.
* Constructs an Action.
*
*
* \returns The handle for the new Action.
* \returns The handle for the new Action.
* \lockfree
*/
*/
Action
CreateAction
(
Action
CreateAction
(
mtapi_job_id_t
job_id
,
/**< Job ID the Action belongs to */
mtapi_job_id_t
job_id
,
/**< Job ID the Action belongs to */
...
@@ -375,6 +381,7 @@ class Node {
...
@@ -375,6 +381,7 @@ class Node {
* Constructs a Group object with default attributes.
* Constructs a Group object with default attributes.
*
*
* \returns The handle for the new Group.
* \returns The handle for the new Group.
* \lockfree
*/
*/
Group
CreateGroup
()
{
Group
CreateGroup
()
{
return
Group
(
MTAPI_GROUP_ID_NONE
,
MTAPI_DEFAULT_GROUP_ATTRIBUTES
);
return
Group
(
MTAPI_GROUP_ID_NONE
,
MTAPI_DEFAULT_GROUP_ATTRIBUTES
);
...
@@ -384,6 +391,7 @@ class Node {
...
@@ -384,6 +391,7 @@ class Node {
* Constructs a Group object with default attributes and the given ID.
* Constructs a Group object with default attributes and the given ID.
*
*
* \returns The handle for the new Group.
* \returns The handle for the new Group.
* \lockfree
*/
*/
Group
CreateGroup
(
Group
CreateGroup
(
mtapi_group_id_t
id
/**< A user defined ID of the Group. */
mtapi_group_id_t
id
/**< A user defined ID of the Group. */
...
@@ -395,6 +403,7 @@ class Node {
...
@@ -395,6 +403,7 @@ class Node {
* Constructs a Group object using the given Attributes.
* Constructs a Group object using the given Attributes.
*
*
* \returns The handle for the new Group.
* \returns The handle for the new Group.
* \lockfree
*/
*/
Group
CreateGroup
(
Group
CreateGroup
(
GroupAttributes
const
&
group_attr
/**< Attributes for the Group. */
GroupAttributes
const
&
group_attr
/**< Attributes for the Group. */
...
@@ -406,6 +415,7 @@ class Node {
...
@@ -406,6 +415,7 @@ class Node {
* Constructs a Group object with given attributes and ID.
* Constructs a Group object with given attributes and ID.
*
*
* \returns The handle for the new Group.
* \returns The handle for the new Group.
* \lockfree
*/
*/
Group
CreateGroup
(
Group
CreateGroup
(
mtapi_group_id_t
id
,
/**< A user defined ID of the Group. */
mtapi_group_id_t
id
,
/**< A user defined ID of the Group. */
...
@@ -418,6 +428,7 @@ class Node {
...
@@ -418,6 +428,7 @@ class Node {
* Constructs a Queue with the given Job and default attributes.
* Constructs a Queue with the given Job and default attributes.
*
*
* \returns The handle for the new Queue.
* \returns The handle for the new Queue.
* \lockfree
*/
*/
Queue
CreateQueue
(
Queue
CreateQueue
(
Job
&
job
/**< The Job to use for the Queue. */
Job
&
job
/**< The Job to use for the Queue. */
...
@@ -429,6 +440,7 @@ class Node {
...
@@ -429,6 +440,7 @@ class Node {
* Constructs a Queue with the given Job and QueueAttributes.
* Constructs a Queue with the given Job and QueueAttributes.
*
*
* \returns The handle for the new Queue.
* \returns The handle for the new Queue.
* \lockfree
*/
*/
Queue
CreateQueue
(
Queue
CreateQueue
(
Job
const
&
job
,
/**< The Job to use for the Queue. */
Job
const
&
job
,
/**< The Job to use for the Queue. */
...
...
mtapi_cpp/include/embb/mtapi/queue.h
View file @
8890b584
...
@@ -53,6 +53,8 @@ class Queue {
...
@@ -53,6 +53,8 @@ class Queue {
public
:
public
:
/**
/**
* Copies a Queue.
* Copies a Queue.
*
* \waitfree
*/
*/
Queue
(
Queue
(
Queue
const
&
other
/**< The Queue to copy */
Queue
const
&
other
/**< The Queue to copy */
...
@@ -64,6 +66,7 @@ class Queue {
...
@@ -64,6 +66,7 @@ class Queue {
* Copies a Queue.
* Copies a Queue.
*
*
* \returns Reference to this object.
* \returns Reference to this object.
* \waitfree
*/
*/
Queue
&
operator
=
(
Queue
&
operator
=
(
Queue
const
&
other
/**< The Queue to copy */
Queue
const
&
other
/**< The Queue to copy */
...
@@ -74,6 +77,8 @@ class Queue {
...
@@ -74,6 +77,8 @@ class Queue {
/**
/**
* Deletes a Queue object.
* Deletes a Queue object.
*
* \threadsafe
*/
*/
void
Delete
()
{
void
Delete
()
{
mtapi_queue_delete
(
handle_
,
MTAPI_INFINITE
,
MTAPI_NULL
);
mtapi_queue_delete
(
handle_
,
MTAPI_INFINITE
,
MTAPI_NULL
);
...
...
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