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

Side by Side Diff: include/v8.h

Issue 62283010: Remove preemption thread and API (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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 | src/d8.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 5229 matching lines...) Expand 10 before | Expand all | Expand 10 after
5240 class V8_EXPORT Locker { 5240 class V8_EXPORT Locker {
5241 public: 5241 public:
5242 /** 5242 /**
5243 * Initialize Locker for a given Isolate. 5243 * Initialize Locker for a given Isolate.
5244 */ 5244 */
5245 V8_INLINE explicit Locker(Isolate* isolate) { Initialize(isolate); } 5245 V8_INLINE explicit Locker(Isolate* isolate) { Initialize(isolate); }
5246 5246
5247 ~Locker(); 5247 ~Locker();
5248 5248
5249 /** 5249 /**
5250 * Start preemption.
5251 *
5252 * When preemption is started, a timer is fired every n milliseconds
5253 * that will switch between multiple threads that are in contention
5254 * for the V8 lock.
5255 */
5256 static void StartPreemption(Isolate* isolate, int every_n_ms);
Sven Panne 2013/11/14 10:13:16 While I fully agree that we should remove most of
5257
5258 /**
5259 * Stop preemption.
5260 */
5261 static void StopPreemption(Isolate* isolate);
5262
5263 /**
5264 * Returns whether or not the locker for a given isolate, is locked by the 5250 * Returns whether or not the locker for a given isolate, is locked by the
5265 * current thread. 5251 * current thread.
5266 */ 5252 */
5267 static bool IsLocked(Isolate* isolate); 5253 static bool IsLocked(Isolate* isolate);
5268 5254
5269 /** 5255 /**
5270 * Returns whether v8::Locker is being used by this V8 instance. 5256 * Returns whether v8::Locker is being used by this V8 instance.
5271 */ 5257 */
5272 static bool IsActive(); 5258 static bool IsActive();
5273 5259
(...skipping 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after
6547 */ 6533 */
6548 6534
6549 6535
6550 } // namespace v8 6536 } // namespace v8
6551 6537
6552 6538
6553 #undef TYPE_CHECK 6539 #undef TYPE_CHECK
6554 6540
6555 6541
6556 #endif // V8_H_ 6542 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/d8.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698