Continue the thread that is waiting, if it is waiting. Only the debugger thread should call this.
| 253 | // Continue the thread that is waiting, if it is waiting. Only the |
| 254 | // debugger thread should call this. |
| 255 | void Continue(int count) |
| 256 | { |
| 257 | // Paranoia |
| 258 | if (count < 1) { |
| 259 | count = 1; |
| 260 | } |
| 261 | |
| 262 | mWaitMutex.lock(); |
| 263 | |
| 264 | if (mWaiting) { |
| 265 | mWaiting = false; |
| 266 | mContinueCount = count - 1; |
| 267 | mWaitSemaphore.Set(); |
| 268 | } |
| 269 | |
| 270 | mWaitMutex.unlock(); |
| 271 | } |
| 272 | |
| 273 | |
| 274 |
no test coverage detected