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

Side by Side Diff: src/v8threads.h

Issue 358363002: Move platform abstraction to base library (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 5 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project 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 #ifndef V8_V8THREADS_H_ 5 #ifndef V8_V8THREADS_H_
6 #define V8_V8THREADS_H_ 6 #define V8_V8THREADS_H_
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 ThreadState* GetFreeThreadState(); 89 ThreadState* GetFreeThreadState();
90 90
91 private: 91 private:
92 ThreadManager(); 92 ThreadManager();
93 ~ThreadManager(); 93 ~ThreadManager();
94 94
95 void DeleteThreadStateList(ThreadState* anchor); 95 void DeleteThreadStateList(ThreadState* anchor);
96 96
97 void EagerlyArchiveThread(); 97 void EagerlyArchiveThread();
98 98
99 Mutex mutex_; 99 base::Mutex mutex_;
100 ThreadId mutex_owner_; 100 ThreadId mutex_owner_;
101 ThreadId lazily_archived_thread_; 101 ThreadId lazily_archived_thread_;
102 ThreadState* lazily_archived_thread_state_; 102 ThreadState* lazily_archived_thread_state_;
103 103
104 // In the following two lists there is always at least one object on the list. 104 // In the following two lists there is always at least one object on the list.
105 // The first object is a flying anchor that is only there to simplify linking 105 // The first object is a flying anchor that is only there to simplify linking
106 // and unlinking. 106 // and unlinking.
107 // Head of linked list of free states. 107 // Head of linked list of free states.
108 ThreadState* free_anchor_; 108 ThreadState* free_anchor_;
109 // Head of linked list of states in use. 109 // Head of linked list of states in use.
110 ThreadState* in_use_anchor_; 110 ThreadState* in_use_anchor_;
111 111
112 Isolate* isolate_; 112 Isolate* isolate_;
113 113
114 friend class Isolate; 114 friend class Isolate;
115 friend class ThreadState; 115 friend class ThreadState;
116 }; 116 };
117 117
118 118
119 } } // namespace v8::internal 119 } } // namespace v8::internal
120 120
121 #endif // V8_V8THREADS_H_ 121 #endif // V8_V8THREADS_H_
OLDNEW
« src/base/macros.h ('K') | « src/v8checks.h ('k') | src/win32-math.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698