| 142 | class TLoopFunc: public TFunc { |
| 143 | public: |
| 144 | TLoopFunc(TServices* parent, size_t threads, IRequesterRef& rr) |
| 145 | : TFunc(parent) |
| 146 | , RR_(rr) |
| 147 | { |
| 148 | T_.reserve(threads); |
| 149 | |
| 150 | try { |
| 151 | for (size_t i = 0; i < threads; ++i) { |
| 152 | T_.push_back(SystemThreadFactory()->Run(this)); |
| 153 | } |
| 154 | } catch (...) { |
| 155 | //paranoid mode on |
| 156 | SyncStop(); |
| 157 | throw; |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | ~TLoopFunc() override { |
| 162 | try { |
nothing calls this directly
no test coverage detected