| 191 | { |
| 192 | public: |
| 193 | TestClientPool(TestServer * poTestServer, const int iWriteCount, const int iAvgValueSize) |
| 194 | { |
| 195 | int iClientCount = 100; |
| 196 | for (int i = 0; i < iClientCount; i++) |
| 197 | { |
| 198 | auto poClient = new TestClient(poTestServer, iWriteCount / iClientCount, iAvgValueSize); |
| 199 | poClient->start(); |
| 200 | m_vecTestClient.push_back(poClient); |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | ~TestClientPool() |
| 205 | { |