Name threads
This commit is contained in:
parent
3eff3853d9
commit
5f108b510d
|
@ -419,7 +419,7 @@ void HttpAppFrameworkImpl::run()
|
|||
#ifdef __linux__
|
||||
for (size_t i = 0; i < _threadNum; i++)
|
||||
{
|
||||
auto loopThreadPtr = std::make_shared<EventLoopThread>();
|
||||
auto loopThreadPtr = std::make_shared<EventLoopThread>("DrogonIoLoop");
|
||||
loopThreadPtr->run();
|
||||
loopThreads.push_back(loopThreadPtr);
|
||||
auto serverPtr = std::make_shared<HttpServer>(loopThreadPtr->getLoop(),
|
||||
|
@ -449,7 +449,7 @@ void HttpAppFrameworkImpl::run()
|
|||
servers.push_back(serverPtr);
|
||||
}
|
||||
#else
|
||||
auto loopThreadPtr = std::make_shared<EventLoopThread>();
|
||||
auto loopThreadPtr = std::make_shared<EventLoopThread>("DrogonIoLoop");
|
||||
loopThreadPtr->run();
|
||||
loopThreads.push_back(loopThreadPtr);
|
||||
auto serverPtr = std::make_shared<HttpServer>(loopThreadPtr->getLoop(),
|
||||
|
|
|
@ -44,7 +44,7 @@ using namespace drogon::orm;
|
|||
DbClientImpl::DbClientImpl(const std::string &connInfo, const size_t connNum, ClientType type)
|
||||
: _connInfo(connInfo),
|
||||
_connectNum(connNum),
|
||||
_loops(connNum / 100 > 0 ? connNum / 100 : 1)
|
||||
_loops((connNum / 100 > 0 ? connNum / 100 : 1),"DbLoop")
|
||||
{
|
||||
_type = type;
|
||||
LOG_TRACE << "type=" << (int)type;
|
||||
|
|
2
trantor
2
trantor
|
@ -1 +1 @@
|
|||
Subproject commit 12a3625bfa94f9f2465e8f1420fd895fb887636e
|
||||
Subproject commit 2602ed13292876b463060f132ba0cf15804cf331
|
Loading…
Reference in New Issue