This simply constrained (value-semantic) attribute class characterizes a collection of thread attribute values.
Declared in <bslmt_threadattributes.h>
class ThreadAttributes;
See the section for information on the class attributes.
This class: * supports a complete set of value semantic operations
except for bdex serialization * is exception-neutral * is alias-safe * is const thread-safe For terminology see bsldoc_glossary.
| Name | Description |
|---|---|
Unnamed enum | Default attribute value constants. |
DetachedState | This enumeration provides two values used to distinguish among a joinable thread and a non-joinable (detached) thread. |
SchedulingPolicy | Thread scheduling policies. |
| Name | Description |
|---|---|
ThreadAttributes [constructor] | Constructors |
operator= | Assign to this object the value of the specified rhs object, and return a reference providing modifiable access to this object. |
allocator | Return the allocator used by this object to supply memory. |
detachedState | Return the value of the detachedState attribute of this object. |
guardSize | Return the value of the guardSize attribute of this object. |
inheritSchedule | Return the value of the inheritSchedule attribute of this object. |
print | Format this object to the specified output stream and return a reference to stream. |
schedulingPolicy | Return the value of the schedulingPolicy attribute of this object. |
schedulingPriority | Return the value of the schedulingPriority attribute of this object. |
setDetachedState | Set the detachedState attribute of this object to the specified value. |
setGuardSize | Set the guardSize attribute of this object to the specified value (in bytes). |
setInheritSchedule | Set the inheritSchedule attribute of this object to the specified value. |
setSchedulingPolicy | Set the schedulingPolicy attribute of this object to the specified value. |
setSchedulingPriority | Set the schedulingPriority attribute of this object to the specified value. |
setStackSize | Set the stackSize attribute of this object to the specified value. |
setThreadName | Set the threadName attribute of this object to the specified value. Return a non-const reference to this object (see also {Fluent Interface}). |
stackSize | Return the value of the stackSize attribute of this object. |
threadName | Return the threadName attribute of this object. |
operator BloombergLP::bslmf::NestedTraitDeclaration<ThreadAttributes, UsesBslmaAllocator> | Declare that this type uses a bslma allocator. |
| Name | Description |
|---|---|
operator!= | Return true if the specified lhs and rhs objects do not have the same value, and false otherwise. |
operator== | Return true if the specified lhs and rhs objects have the same value, and false otherwise. |