| 71 | } |
| 72 | |
| 73 | EventLoop* EventLoopThreadPool::getLoopForHash(size_t hashCode) |
| 74 | { |
| 75 | baseLoop_->assertInLoopThread(); |
| 76 | EventLoop* loop = baseLoop_; |
| 77 | |
| 78 | if (!loops_.empty()) |
| 79 | { |
| 80 | loop = loops_[hashCode % loops_.size()]; |
| 81 | } |
| 82 | return loop; |
| 83 | } |
| 84 | |
| 85 | std::vector<EventLoop*> EventLoopThreadPool::getAllLoops() |
| 86 | { |
nothing calls this directly
no test coverage detected