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

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

Issue 9264006: Add additional include guard in platform specific .h files (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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 | « runtime/bin/thread_pool_win.h ('k') | runtime/platform/thread_macos.h » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_THREAD_LINUX_H_ 5 #ifndef PLATFORM_THREAD_LINUX_H_
6 #define PLATFORM_THREAD_LINUX_H_ 6 #define PLATFORM_THREAD_LINUX_H_
7 7
8 #if !defined(PLATFORM_THREAD_H_)
9 #error Do not include thread_linux.h directly; use thread.h instead.
10 #endif
11
8 #include <pthread.h> 12 #include <pthread.h>
9 13
10 #include "platform/assert.h" 14 #include "platform/assert.h"
11 #include "platform/globals.h" 15 #include "platform/globals.h"
12 16
13 namespace dart { 17 namespace dart {
14 18
15 class ThreadData { 19 class ThreadData {
16 private: 20 private:
17 ThreadData() {} 21 ThreadData() {}
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 61
58 friend class Monitor; 62 friend class Monitor;
59 63
60 DISALLOW_ALLOCATION(); 64 DISALLOW_ALLOCATION();
61 DISALLOW_COPY_AND_ASSIGN(MonitorData); 65 DISALLOW_COPY_AND_ASSIGN(MonitorData);
62 }; 66 };
63 67
64 } // namespace dart 68 } // namespace dart
65 69
66 #endif // PLATFORM_THREAD_LINUX_H_ 70 #endif // PLATFORM_THREAD_LINUX_H_
OLDNEW
« no previous file with comments | « runtime/bin/thread_pool_win.h ('k') | runtime/platform/thread_macos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698