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

Side by Side Diff: platform/thread.h

Issue 10544170: Have the stack overflow code use the correct stack size set by the platform/thread.h (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 6 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 | platform/thread_linux.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) 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_H_ 5 #ifndef PLATFORM_THREAD_H_
6 #define PLATFORM_THREAD_H_ 6 #define PLATFORM_THREAD_H_
7 7
8 #include "platform/globals.h" 8 #include "platform/globals.h"
9 9
10 // Declare the OS-specific types ahead of defining the generic classes. 10 // Declare the OS-specific types ahead of defining the generic classes.
(...skipping 19 matching lines...) Expand all
30 // thread started successfuly and a system specific error code if 30 // thread started successfuly and a system specific error code if
31 // the thread failed to start. 31 // the thread failed to start.
32 static int Start(ThreadStartFunction function, uword parameters); 32 static int Start(ThreadStartFunction function, uword parameters);
33 33
34 static ThreadLocalKey CreateThreadLocal(); 34 static ThreadLocalKey CreateThreadLocal();
35 static void DeleteThreadLocal(ThreadLocalKey key); 35 static void DeleteThreadLocal(ThreadLocalKey key);
36 static uword GetThreadLocal(ThreadLocalKey key) { 36 static uword GetThreadLocal(ThreadLocalKey key) {
37 return ThreadInlineImpl::GetThreadLocal(key); 37 return ThreadInlineImpl::GetThreadLocal(key);
38 } 38 }
39 static void SetThreadLocal(ThreadLocalKey key, uword value); 39 static void SetThreadLocal(ThreadLocalKey key, uword value);
40 static intptr_t GetMaxStackSize();
40 }; 41 };
41 42
42 43
43 class Mutex { 44 class Mutex {
44 public: 45 public:
45 Mutex(); 46 Mutex();
46 ~Mutex(); 47 ~Mutex();
47 48
48 void Lock(); 49 void Lock();
49 bool TryLock(); 50 bool TryLock();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 private: 82 private:
82 MonitorData data_; // OS-specific data. 83 MonitorData data_; // OS-specific data.
83 84
84 DISALLOW_COPY_AND_ASSIGN(Monitor); 85 DISALLOW_COPY_AND_ASSIGN(Monitor);
85 }; 86 };
86 87
87 } // namespace dart 88 } // namespace dart
88 89
89 90
90 #endif // PLATFORM_THREAD_H_ 91 #endif // PLATFORM_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | platform/thread_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698