46 : name_(std::move(
name))
53 const std::string&
name()
const {
return name_; }
62 int policy()
const {
return policy_; }
68 name_ = std::move(
name);
#define ONIXS_ICEBOE_NAMESPACE_BEGIN
#define ONIXS_ICEBOE_NAMESPACE_END
#define ONIXS_ICEBOE_EXPORTED
ServiceFactory(const ServiceFactory &)=delete
ServiceFactory(const SessionSettings &setting)
ServiceFactory(uint16_t threadCount, const ThreadParams ¶ms)
std::set< CpuIndex > CpuIndexes
Parameters used to configure a thread.
const CpuIndexes & affinity() const
const std::string & name() const
ThreadParams()=default
Construct default thread parameters.
ThreadParams & setName(std::string name)
Sets the thread name.
ThreadParams & setPolicy(int policy)
Sets the scheduling policy.
ThreadParams & setAffinity(CpuIndexes affinity)
Sets the CPU affinity.
ThreadParams & setPriority(int priority)
Sets the scheduling priority.
ThreadParams(std::string name, CpuIndexes affinity, int priority=0, int policy=0)
Construct thread parameters with explicit values.