From c6705f5e40fe155b5325ae448c147e5d4b1aa1a6 Mon Sep 17 00:00:00 2001 From: "jochen@chromium.org" Date: Thu, 14 Nov 2013 11:37:32 +0000 Subject: [PATCH] Deprecate v8::Locker::{Start,Stop}Preemption BUG=v8:3004 R=svenpanne@chromium.org Review URL: https://codereview.chromium.org/63173022 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17736 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- include/v8.h | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/include/v8.h b/include/v8.h index d6678c5..f0b627e 100644 --- a/include/v8.h +++ b/include/v8.h @@ -5246,19 +5246,11 @@ class V8_EXPORT Locker { ~Locker(); - /** - * Start preemption. - * - * When preemption is started, a timer is fired every n milliseconds - * that will switch between multiple threads that are in contention - * for the V8 lock. - */ - static void StartPreemption(Isolate* isolate, int every_n_ms); + V8_DEPRECATED("This will be remvoed.", + static void StartPreemption(Isolate *isolate, int every_n_ms)); - /** - * Stop preemption. - */ - static void StopPreemption(Isolate* isolate); + V8_DEPRECATED("This will be removed", + static void StopPreemption(Isolate* isolate)); /** * Returns whether or not the locker for a given isolate, is locked by the -- 2.7.4