Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Side by Side Diff: base/synchronization/waitable_event_win.cc

Issue 281223002: Removed LOG_GETLASTERROR and LOG_ERRNO macros. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wed 05/14/2014 11:20:03.21 Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/sha1_win.cc ('k') | base/threading/worker_pool_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/synchronization/waitable_event.h" 5 #include "base/synchronization/waitable_event.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 for (size_t i = 0; i < count; ++i) 85 for (size_t i = 0; i < count; ++i)
86 handles[i] = events[i]->handle(); 86 handles[i] = events[i]->handle();
87 87
88 // The cast is safe because count is small - see the CHECK above. 88 // The cast is safe because count is small - see the CHECK above.
89 DWORD result = 89 DWORD result =
90 WaitForMultipleObjects(static_cast<DWORD>(count), 90 WaitForMultipleObjects(static_cast<DWORD>(count),
91 handles, 91 handles,
92 FALSE, // don't wait for all the objects 92 FALSE, // don't wait for all the objects
93 INFINITE); // no timeout 93 INFINITE); // no timeout
94 if (result >= WAIT_OBJECT_0 + count) { 94 if (result >= WAIT_OBJECT_0 + count) {
95 DLOG_GETLASTERROR(FATAL) << "WaitForMultipleObjects failed"; 95 DPLOG(FATAL) << "WaitForMultipleObjects failed";
96 return 0; 96 return 0;
97 } 97 }
98 98
99 return result - WAIT_OBJECT_0; 99 return result - WAIT_OBJECT_0;
100 } 100 }
101 101
102 } // namespace base 102 } // namespace base
OLDNEW
« no previous file with comments | « base/sha1_win.cc ('k') | base/threading/worker_pool_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698