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

Side by Side Diff: runtime/platform/signal_blocker.h

Issue 468683002: - Make sure ASSERT is defined in signal_blocker.h. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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 | « no previous file | no next file » | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef PLATFORM_SIGNAL_BLOCKER_H_ 5 #ifndef PLATFORM_SIGNAL_BLOCKER_H_
6 #define PLATFORM_SIGNAL_BLOCKER_H_ 6 #define PLATFORM_SIGNAL_BLOCKER_H_
7 7
8 #include "platform/globals.h" 8 #include "platform/globals.h"
9 #include "platform/assert.h"
9 10
10 #if defined(TARGET_OS_WINDOWS) 11 #if defined(TARGET_OS_WINDOWS)
11 #error Do not include this file on Windows. 12 #error Do not include this file on Windows.
12 #endif 13 #endif
13 14
14 #include <signal.h> // NOLINT 15 #include <signal.h> // NOLINT
15 16
16 namespace dart { 17 namespace dart {
17 18
18 class ThreadSignalBlocker { 19 class ThreadSignalBlocker {
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 __result = (expression); \ 98 __result = (expression); \
98 } while ((__result == -1L) && (errno == EINTR)); \ 99 } while ((__result == -1L) && (errno == EINTR)); \
99 __result; }) 100 __result; })
100 101
101 #define VOID_TEMP_FAILURE_RETRY_NO_SIGNAL_BLOCKER(expression) \ 102 #define VOID_TEMP_FAILURE_RETRY_NO_SIGNAL_BLOCKER(expression) \
102 (static_cast<void>(TEMP_FAILURE_RETRY_NO_SIGNAL_BLOCKER(expression))) 103 (static_cast<void>(TEMP_FAILURE_RETRY_NO_SIGNAL_BLOCKER(expression)))
103 104
104 } // namespace dart 105 } // namespace dart
105 106
106 #endif // PLATFORM_SIGNAL_BLOCKER_H_ 107 #endif // PLATFORM_SIGNAL_BLOCKER_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698