系统均衡负载器(无用户调度的负载器)
更多...
#include <SystemBalanceLoader.h>
系统均衡负载器(无用户调度的负载器)
- 警告
- 此负载器仅在 Linux 上生效
- 参见
- sese::service::BalanceLoader
◆ ~SystemBalanceLoader()
sese::service::SystemBalanceLoader::~SystemBalanceLoader |
( |
| ) |
|
|
noexcept |
◆ init() [1/2]
template<class SERVICE >
bool sese::service::SystemBalanceLoader::init |
( |
| ) |
|
|
noexcept |
◆ init() [2/2]
template<class SERVICE >
bool sese::service::SystemBalanceLoader::init |
( |
std::function< SERVICE *()> | creator | ) |
|
|
noexcept |
◆ isStarted()
bool sese::service::SystemBalanceLoader::isStarted |
( |
| ) |
const |
|
inlinenodiscard |
◆ setAcceptTimeout()
void sese::service::SystemBalanceLoader::setAcceptTimeout |
( |
uint32_t | to | ) |
|
|
inlinenoexcept |
◆ setAddress()
◆ setDispatchTimeout()
void sese::service::SystemBalanceLoader::setDispatchTimeout |
( |
uint32_t | to | ) |
|
|
inlinenoexcept |
◆ setThreads()
void sese::service::SystemBalanceLoader::setThreads |
( |
size_t | th | ) |
|
|
noexcept |
◆ start()
void sese::service::SystemBalanceLoader::start |
( |
| ) |
|
|
noexcept |
◆ stop()
void sese::service::SystemBalanceLoader::stop |
( |
| ) |
|
|
noexcept |
◆ _isStart
std::atomic_bool sese::service::SystemBalanceLoader::_isStart {false} |
|
protected |
◆ _isStop
std::atomic_bool sese::service::SystemBalanceLoader::_isStop {false} |
|
protected |
◆ address
◆ eventLoopVector
std::vector<event::EventLoop *> sese::service::SystemBalanceLoader::eventLoopVector |
|
protected |
◆ socketVector
std::vector<socket_t> sese::service::SystemBalanceLoader::socketVector |
|
protected |
◆ threads
size_t sese::service::SystemBalanceLoader::threads {2} |
|
protected |
◆ threadVector
◆ timeout
uint32_t sese::service::SystemBalanceLoader::timeout = 100 |
|
protected |
该类的文档由以下文件生成: