win: replace a while loop with a for loop
This is the recommended resolution to warning C4127. https://msdn.microsoft.com/en-us/library/6t66728h.aspx Change-Id: Ifcffe68e21d9a6383bb9aef07503cbb034caca19 Reviewed-on: https://chromium-review.googlesource.com/1191661 Reviewed-by: Ivan Penkov <ivanpe@chromium.org>
This commit is contained in:
parent
1459e5df74
commit
21c9874722
1 changed files with 1 additions and 1 deletions
|
@ -388,7 +388,7 @@ DWORD ExceptionHandler::ExceptionHandlerThreadMain(void* lpParameter) {
|
||||||
assert(self->handler_start_semaphore_ != NULL);
|
assert(self->handler_start_semaphore_ != NULL);
|
||||||
assert(self->handler_finish_semaphore_ != NULL);
|
assert(self->handler_finish_semaphore_ != NULL);
|
||||||
|
|
||||||
while (true) {
|
for(;;) {
|
||||||
if (WaitForSingleObject(self->handler_start_semaphore_, INFINITE) ==
|
if (WaitForSingleObject(self->handler_start_semaphore_, INFINITE) ==
|
||||||
WAIT_OBJECT_0) {
|
WAIT_OBJECT_0) {
|
||||||
// Perform the requested action.
|
// Perform the requested action.
|
||||||
|
|
Loading…
Reference in a new issue