| 236 | } |
| 237 | |
| 238 | Pool::~Pool() |
| 239 | { |
| 240 | mRunning = 0; |
| 241 | int i; |
| 242 | for (i = 0; i < mThreadCount; i++) |
| 243 | { |
| 244 | wait(mThread[i]); |
| 245 | release(mThread[i]); |
| 246 | } |
| 247 | delete[] mThread; |
| 248 | if (mWorkMutex) |
| 249 | destroyMutex(mWorkMutex); |
| 250 | } |
| 251 | |
| 252 | void Pool::init(int aThreadCount) |
| 253 | { |
nothing calls this directly
no test coverage detected