| 151 | } |
| 152 | |
| 153 | bool stressTestTimer(bool *end, std::atomic<int> &numCalls) |
| 154 | { |
| 155 | numCalls++; |
| 156 | |
| 157 | if (!end || !*end) { |
| 158 | return true; |
| 159 | } |
| 160 | return false; |
| 161 | } |
| 162 | |
| 163 | void stressTestThread(std::weak_ptr<DispatchQueue> dispatchQueue, bool &end, std::atomic<int> &numCalls) |
| 164 | { |