drogonframework / drogonframework/drogon

trantor::EventLoopThreadPool 可以指定loop执行吗?

Open
#2,104 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
14.3k
Forks
1.4k
Avg merge
1d 13h
Merged PRs (30d)
14

Description

您好,我使用了EventLoopThreadPool 来做多线程异步http请求

我看到执行的时候需要调用EventLoopThreadPool 的start方法

```
void EventLoopThreadPool::start()
{
for (unsigned int i = 0; i < loopThreadVector_.size(); ++i)
{
loopThreadVector_[i]->run();
}
}
```

但是看到源码里面需要把threadvector里面所有的loop 执行一遍

可以指定loop执行吗?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.