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

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: rebased 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 5228 matching lines...) Expand 10 before | Expand all | Expand 10 after
5239 5239
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 V8_DEPRECATED("This will be remvoed.",
5250 static void StartPreemption(Isolate *isolate, int every_n_ms));
5251
5252 V8_DEPRECATED("This will be removed",
5253 static void StopPreemption(Isolate* isolate));
5254
5255 /** 5249 /**
5256 * 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
5257 * current thread. 5251 * current thread.
5258 */ 5252 */
5259 static bool IsLocked(Isolate* isolate); 5253 static bool IsLocked(Isolate* isolate);
5260 5254
5261 /** 5255 /**
5262 * Returns whether v8::Locker is being used by this V8 instance. 5256 * Returns whether v8::Locker is being used by this V8 instance.
5263 */ 5257 */
5264 static bool IsActive(); 5258 static bool IsActive();
(...skipping 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after
6539 */ 6533 */
6540 6534
6541 6535
6542 } // namespace v8 6536 } // namespace v8
6543 6537
6544 6538
6545 #undef TYPE_CHECK 6539 #undef TYPE_CHECK
6546 6540
6547 6541
6548 #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