8#ifndef INCLUDED_BSLMT_THREADATTRIBUTES
9#define INCLUDED_BSLMT_THREADATTRIBUTES
321#include <bslscm_version.h>
332#include <bsl_c_limits.h>
333#include <bsl_iosfwd.h>
334#include <bsl_string.h>
368#ifndef BDE_OMIT_INTERNAL_DEPRECATED
389#ifndef BDE_OMIT_INTERNAL_DEPRECATED
410#ifndef BDE_OMIT_INTERNAL_DEPRECATED
428 bool d_inheritScheduleFlag;
435 int d_schedulingPriority;
578 bsl::ostream&
print(bsl::ostream& stream,
580 int spacesPerLevel = 4)
const;
657 d_detachedState = value;
677 d_inheritScheduleFlag = value;
689 d_schedulingPolicy = value;
697 d_schedulingPriority = value;
718 d_threadName.
assign(value);
727 return d_detachedState;
739 return d_inheritScheduleFlag;
745 return d_schedulingPolicy;
751 return d_schedulingPriority;
781 return object.print(stream, 0, -1);
Definition bslstl_string.h:1281
basic_string & assign(const basic_string &replacement)
Definition bslstl_string.h:5716
allocator_type get_allocator() const BSLS_KEYWORD_NOEXCEPT
Return the allocator used by this string to supply memory.
Definition bslstl_string.h:6723
Definition bslma_allocator.h:457
Definition bslmt_threadattributes.h:356
bslstl::StringRef threadName() const
Definition bslmt_threadattributes.h:761
int schedulingPriority() const
Definition bslmt_threadattributes.h:749
bslma::Allocator * allocator() const
Return the allocator used by this object to supply memory.
Definition bslmt_threadattributes.h:769
SchedulingPolicy schedulingPolicy() const
Definition bslmt_threadattributes.h:743
int guardSize() const
Definition bslmt_threadattributes.h:731
int stackSize() const
Definition bslmt_threadattributes.h:755
ThreadAttributes & setThreadName(const bslstl::StringRef &value)
Definition bslmt_threadattributes.h:715
SchedulingPolicy
Definition bslmt_threadattributes.h:376
@ e_SCHED_FIFO
Definition bslmt_threadattributes.h:383
@ BCEMT_SCHED_DEFAULT
Definition bslmt_threadattributes.h:393
@ BCEMT_SCHED_OTHER
Definition bslmt_threadattributes.h:390
@ e_SCHED_RR
Definition bslmt_threadattributes.h:385
@ e_SCHED_OTHER
Definition bslmt_threadattributes.h:380
@ e_SCHED_DEFAULT
Definition bslmt_threadattributes.h:387
@ BCEMT_SCHED_FIFO
Definition bslmt_threadattributes.h:391
@ BCEMT_SCHED_RR
Definition bslmt_threadattributes.h:392
ThreadAttributes & operator=(const ThreadAttributes &rhs)
ThreadAttributes & setGuardSize(int value)
Definition bslmt_threadattributes.h:663
BSLMF_NESTED_TRAIT_DECLARATION(ThreadAttributes, bslma::UsesBslmaAllocator)
ThreadAttributes & setInheritSchedule(bool value)
Definition bslmt_threadattributes.h:675
ThreadAttributes & setSchedulingPriority(int value)
Definition bslmt_threadattributes.h:695
ThreadAttributes & setStackSize(int value)
Definition bslmt_threadattributes.h:703
DetachedState
Definition bslmt_threadattributes.h:363
@ BCEMT_CREATE_JOINABLE
Definition bslmt_threadattributes.h:369
@ CREATE_DETACHED
Definition bslmt_threadattributes.h:372
@ BCEMT_CREATE_DETACHED
Definition bslmt_threadattributes.h:370
@ e_CREATE_JOINABLE
Definition bslmt_threadattributes.h:365
@ CREATE_JOINABLE
Definition bslmt_threadattributes.h:371
@ e_CREATE_DETACHED
Definition bslmt_threadattributes.h:366
DetachedState detachedState() const
Definition bslmt_threadattributes.h:725
ThreadAttributes & setDetachedState(DetachedState value)
Definition bslmt_threadattributes.h:651
ThreadAttributes(const ThreadAttributes &original, bslma::Allocator *basicAllocator=0)
ThreadAttributes & setSchedulingPolicy(SchedulingPolicy value)
Definition bslmt_threadattributes.h:683
bool inheritSchedule() const
Definition bslmt_threadattributes.h:737
ThreadAttributes(bslma::Allocator *basicAllocator)
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
@ e_SCHED_MIN
Definition bslmt_threadattributes.h:408
@ BCEMT_UNSET_STACK_SIZE
Definition bslmt_threadattributes.h:411
@ BCEMT_SCHED_MIN
Definition bslmt_threadattributes.h:414
@ e_SCHED_MAX
Definition bslmt_threadattributes.h:409
@ e_UNSET_GUARD_SIZE
Definition bslmt_threadattributes.h:405
@ BCEMT_SCHED_MAX
Definition bslmt_threadattributes.h:415
@ BCEMT_UNSET_PRIORITY
Definition bslmt_threadattributes.h:413
@ e_UNSET_PRIORITY
Definition bslmt_threadattributes.h:406
@ e_UNSET_STACK_SIZE
Definition bslmt_threadattributes.h:404
@ BCEMT_UNSET_GUARD_SIZE
Definition bslmt_threadattributes.h:412
Definition bslstl_stringref.h:372
#define BSLMF_ASSERT(expr)
Definition bslmf_assert.h:229
#define BSLS_ASSERT_SAFE(X)
Definition bsls_assert.h:1762
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bslmt_barrier.h:344
bsl::ostream & operator<<(bsl::ostream &stream, const ThreadAttributes &object)
Definition bslma_usesbslmaallocator.h:343