Contains attributes of a Node.
More...
#include <node_attributes.h>
Contains attributes of a Node.
embb::mtapi::NodeAttributes::NodeAttributes |
( |
| ) |
|
Constructs a NodeAttributes object.
- Concurrency
- Thread-safe and wait-free
embb::mtapi::NodeAttributes::NodeAttributes |
( |
NodeAttributes const & |
other | ) |
|
Copies a NodeAttributes object.
- Concurrency
- Thread-safe and wait-free
- Parameters
-
void embb::mtapi::NodeAttributes::operator= |
( |
NodeAttributes const & |
other | ) |
|
Copies a NodeAttributes object.
- Concurrency
- Thread-safe and wait-free
- Parameters
-
Sets the core affinity of the Node.
This also determines the number of worker threads.
- Returns
- Reference to this object.
- Concurrency
- Not thread-safe
- Parameters
-
Sets the priority of the specified worker threads.
- Returns
- Reference to this object.
- Concurrency
- Not thread-safe
- Parameters
-
worker_priorities | Array of priorities |
NodeAttributes& embb::mtapi::NodeAttributes::SetMaxTasks |
( |
mtapi_uint_t |
value | ) |
|
Sets the maximum number of concurrently active tasks.
- Returns
- Reference to this object.
- Concurrency
- Not thread-safe
- Parameters
-
NodeAttributes& embb::mtapi::NodeAttributes::SetMaxActions |
( |
mtapi_uint_t |
value | ) |
|
Sets the maximum number of actions.
- Returns
- Reference to this object.
- Concurrency
- Not thread-safe
- Parameters
-
NodeAttributes& embb::mtapi::NodeAttributes::SetMaxGroups |
( |
mtapi_uint_t |
value | ) |
|
Sets the maximum number of groups.
- Returns
- Reference to this object.
- Concurrency
- Not thread-safe
- Parameters
-
NodeAttributes& embb::mtapi::NodeAttributes::SetMaxQueues |
( |
mtapi_uint_t |
value | ) |
|
Sets the maximum number of queues.
- Returns
- Reference to this object.
- Concurrency
- Not thread-safe
- Parameters
-
NodeAttributes& embb::mtapi::NodeAttributes::SetQueueLimit |
( |
mtapi_uint_t |
value | ) |
|
Sets the default limit (capacity) of all queues.
- Returns
- Reference to this object.
- Concurrency
- Not thread-safe
- Parameters
-
NodeAttributes& embb::mtapi::NodeAttributes::SetMaxJobs |
( |
mtapi_uint_t |
value | ) |
|
Sets the maximum number of available jobs.
- Returns
- Reference to this object.
- Concurrency
- Not thread-safe
- Parameters
-
NodeAttributes& embb::mtapi::NodeAttributes::SetMaxActionsPerJob |
( |
mtapi_uint_t |
value | ) |
|
Sets the maximum number of actions per job.
- Returns
- Reference to this object.
- Concurrency
- Not thread-safe
- Parameters
-
NodeAttributes& embb::mtapi::NodeAttributes::SetMaxPriorities |
( |
mtapi_uint_t |
value | ) |
|
Sets the maximum number of available priorities.
The priority values will range from 0 to value
- 1 with 0 being the highest priority.
- Returns
- Reference to this object.
- Concurrency
- Not thread-safe
- Parameters
-
NodeAttributes& embb::mtapi::NodeAttributes::SetReuseMainThread |
( |
mtapi_boolean_t |
reuse | ) |
|
Enables or disables the reuse of the main thread as a worker.
- Returns
- Reference to this object.
- Concurrency
- Not thread-safe
- Parameters
-
mtapi_node_attributes_t const& embb::mtapi::NodeAttributes::GetInternal |
( |
| ) |
const |
Returns the internal representation of this object.
Allows for interoperability with the C interface.
- Returns
- A reference to the internal mtapi_node_attributes_t structure.
- Concurrency
- Thread-safe and wait-free